Table of Contents

Class RequireOwnerAttribute

Namespace
DSharpPlus.CommandsNext.Attributes
Assembly
DSharpPlus.CommandsNext.dll

Defines that usage of this command is restricted to the owner of the bot.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class RequireOwnerAttribute : CheckBaseAttribute
Inheritance
object
Attribute
RequireOwnerAttribute

Methods

ExecuteCheckAsync(CommandContext, bool)

Asynchronously checks whether this command can be executed within given context.