Table of Contents

Class ApplicationCommandRequirePermissionsAttribute

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

Defines that usage of this application command is restricted to members with specified permissions. This check also verifies that the bot has the same permissions.

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

Constructors

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.

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.