Method RunChecksAsync
- Namespace
- DisCatSharp.CommandsNext
- Assembly
- DisCatSharp.CommandsNext.dll
RunChecksAsync(CommandContext, bool)
Runs pre-execution checks for this command and returns any that fail for given context.
public Task<IEnumerable<CheckBaseAttribute>> RunChecksAsync(CommandContext ctx, bool help)
Parameters
ctx
CommandContextContext in which the command is executed.
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).
Returns
- Task<IEnumerable<CheckBaseAttribute>>
Pre-execution checks that fail for given context.