Constructor DiscordApplicationCommandPermission
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
DiscordApplicationCommandPermission(DiscordRole, bool)
Represents a permission for a application command.
public DiscordApplicationCommandPermission(DiscordRole role, bool permission)
Parameters
roleDiscordRoleThe role to construct the permission for.
permissionboolWhether the command should be enabled for the role.
DiscordApplicationCommandPermission(DiscordMember, bool)
Represents a permission for a application command.
public DiscordApplicationCommandPermission(DiscordMember member, bool permission)
Parameters
memberDiscordMemberThe member to construct the permission for.
permissionboolWhether the command should be enabled for the role.