Class MessageContextMenuOption

Message context menu option part for a module

Hierarchy

Constructors

Properties

Constructors

Properties

data: ContextMenuCommandBuilder = ...

Data to register into the Discord API

execute: ((...args: any[]) => Promise<void>)

Type declaration

    • (...args: any[]): Promise<void>
    • The function when the part is executed

      Parameters

      • Rest ...args: any[]

      Returns Promise<void>

id: string

ID of the part

init: undefined | ((artibot: Artibot) => Promise<void>)

The function executed on bot startup

Generated using TypeDoc v0.23.28