Table of Contents

Method ExecuteCheckAsync

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

Context to check execution ability for.

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<bool>

Whether the command can be executed in given context.