Constructor ApplicationCommandRequireBotPermissionsAttribute
- Namespace
- DisCatSharp.ApplicationCommands.Attributes
- Assembly
- DisCatSharp.ApplicationCommands.dll
ApplicationCommandRequireBotPermissionsAttribute(Permissions, bool)
Defines that usage of this application command is only possible when the bot is granted a specific permission.
public ApplicationCommandRequireBotPermissionsAttribute(Permissions permissions, bool ignoreDms = true)
Parameters
permissions
PermissionsPermissions required to execute this command.
ignoreDms
boolSets this check's behaviour in DMs. True means the check will always pass in DMs, whereas false means that it will always fail.