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
role
DiscordRoleThe role to construct the permission for.
permission
boolWhether 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
member
DiscordMemberThe member to construct the permission for.
permission
boolWhether the command should be enabled for the role.