Constructor SlashRequireBotPermissionsAttribute
- Namespace
- DSharpPlus.SlashCommands.Attributes
- Assembly
- DSharpPlus.SlashCommands.dll
SlashRequireBotPermissionsAttribute(bool, params DiscordPermission[])
Defines that usage of this slash command is only possible when the bot is granted a specific permission.
public SlashRequireBotPermissionsAttribute(bool ignoreDms = true, params DiscordPermission[] permissions)
Parameters
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.
permissions
DiscordPermission[]Permissions required to execute this command.