Class RequireStaffAttribute
Defines that usage of this command is restricted to discord employees.
Namespace: DisCatSharp.CommandsNext.Attributes
Assembly: DisCatSharp.CommandsNext.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = false)]
public sealed class RequireStaffAttribute : CheckBaseAttribute
Methods
| Improve this Doc View SourceExecuteCheckAsync(CommandContext, Boolean)
Executes the a check.
Declaration
public override Task<bool> ExecuteCheckAsync(CommandContext ctx, bool help)
Parameters
Type | Name | Description |
---|---|---|
CommandContext | ctx | The command context. |
System.Boolean | help | If true, help - returns true. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |