Table of Contents

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