Table of Contents

Class RequireAnyPermissionsAttribute

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

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

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

Constructors

RequireAnyPermissionsAttribute(params Permissions[])

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

Properties

AnyPermissions

Gets the permissions required by this attribute.

Methods

ExecuteChecksAsync(BaseContext)

Runs checks.