Table of Contents

Constructor RequireBotPermissionsAttribute

Namespace
DisCatSharp.CommandsNext.Attributes
Assembly
DisCatSharp.CommandsNext.dll

RequireBotPermissionsAttribute(Permissions, bool)

Defines that usage of this command is only possible when the bot is granted a specific permission.

public RequireBotPermissionsAttribute(Permissions permissions, bool ignoreDms = true)

Parameters

permissions Permissions

Permissions required to execute this command.

ignoreDms bool

Sets this check's behaviour in DMs. True means the check will always pass in DMs, whereas false means that it will always fail.