Class RequireGuildAttribute
Defines that a command is only usable within a guild.
Namespace: DSharpPlus.CommandsNext.Attributes
Assembly: cs.temp.dll.dll
Syntax
public sealed class RequireGuildAttribute : CheckBaseAttribute
Constructors
RequireGuildAttribute()
Defines that this command is only usable within a guild.
Declaration
public RequireGuildAttribute()
Methods
ExecuteCheckAsync(CommandContext, Boolean)
Declaration
public override Task<bool> ExecuteCheckAsync(CommandContext ctx, bool help)
Parameters
Type | Name | Description |
---|---|---|
CommandContext | ctx | |
System.Boolean | help |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |