Table of Contents

Class ApplicationCommandRequireBotPermissionsAttribute

Namespace
DisCatSharp.ApplicationCommands.Attributes
Assembly
DisCatSharp.ApplicationCommands.dll

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

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, Inherited = false)]
public sealed class ApplicationCommandRequireBotPermissionsAttribute : ApplicationCommandCheckBaseAttribute
Inheritance
ApplicationCommandRequireBotPermissionsAttribute
Inherited Members

Constructors

ApplicationCommandRequireBotPermissionsAttribute(Permissions, bool)

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

Properties

IgnoreDms

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

Permissions

Gets the permissions required by this attribute.

Methods

ExecuteChecksAsync(BaseContext)

Runs checks.