Method ExecuteCheckAsync
- Namespace
- DisCatSharp.CommandsNext.Attributes
- Assembly
- DisCatSharp.CommandsNext.dll
ExecuteCheckAsync(CommandContext, bool)
Asynchronously checks whether this command can be executed within given context.
public override Task<bool> ExecuteCheckAsync(CommandContext ctx, bool help)
Parameters
ctx
CommandContextContext to check execution ability for.
help
boolWhether this check is being executed from help or not. This can be used to probe whether command can be run without setting off certain fail conditions (such as cooldowns).