Table of Contents

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 ContextMenuContext

The context.

Returns

Task<bool>

Whether or not to execute the slash command.