Table of Contents

Method RunChecksAsync

Namespace
DSharpPlus.CommandsNext
Assembly
DSharpPlus.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 CommandContext

Context in which the command is executed.

help bool

Whether 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.