Constructor ApplicationCommandRequirePermissionsAttribute
- Namespace
- DisCatSharp.ApplicationCommands.Attributes
- Assembly
- DisCatSharp.ApplicationCommands.dll
ApplicationCommandRequirePermissionsAttribute(Permissions, bool)
Defines that usage of this command is restricted to members with specified permissions. This check also verifies that the bot has the same permissions.
public ApplicationCommandRequirePermissionsAttribute(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.