Table of Contents

Method BeforeContextMenuExecutionAsync

Namespace
DisCatSharp.ApplicationCommands
Assembly
DisCatSharp.ApplicationCommands.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.