Table of Contents

Method BeforeSlashExecutionAsync

Namespace
DisCatSharp.ApplicationCommands
Assembly
DisCatSharp.ApplicationCommands.dll

BeforeSlashExecutionAsync(InteractionContext)

Called before the execution of a slash command in the module.

public virtual Task<bool> BeforeSlashExecutionAsync(InteractionContext ctx)

Parameters

ctx InteractionContext

The context.

Returns

Task<bool>

Whether or not to execute the slash command.