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