Method BeforeSlashExecutionAsync
- Namespace
- DSharpPlus.SlashCommands
- Assembly
- DSharpPlus.SlashCommands.dll
BeforeSlashExecutionAsync(InteractionContext)
Called before the execution of a slash command in the module.
public virtual Task<bool> BeforeSlashExecutionAsync(InteractionContext ctx)
Parameters
ctx
InteractionContextThe context.
Returns
- Task<bool>
Whether or not to execute the slash command.