Table of Contents

Class RequireGuildAttribute

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

Defines that a command is only usable within a guild.

public sealed class RequireGuildAttribute : CheckBaseAttribute
Inheritance
object
Attribute
RequireGuildAttribute

Constructors

RequireGuildAttribute()

Defines that this command is only usable within a guild.

Methods

ExecuteCheckAsync(CommandContext, bool)

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