Table of Contents

Class RequireUserPermissionsAttribute

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

Defines that usage of this command is restricted to members with specified permissions.

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

Constructors

RequireUserPermissionsAttribute(Permissions, bool)

Defines that usage of this command is restricted to members with specified 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

ExecuteCheckAsync(CommandContext, bool)

Executes the a check.