Class ContextMenu

Hierarchy

  • ContextMenu

Constructors

Properties

callback: {
    MESSAGE: ((itr: MessageContextMenuCommandInteraction<CacheType>) => void);
    USER: ((itr: UserContextMenuCommandInteraction<CacheType>) => void);
}

Type declaration

  • MESSAGE: ((itr: MessageContextMenuCommandInteraction<CacheType>) => void)
      • (itr: MessageContextMenuCommandInteraction<CacheType>): void
      • Parameters

        • itr: MessageContextMenuCommandInteraction<CacheType>

        Returns void

  • USER: ((itr: UserContextMenuCommandInteraction<CacheType>) => void)
      • (itr: UserContextMenuCommandInteraction<CacheType>): void
      • Parameters

        • itr: UserContextMenuCommandInteraction<CacheType>

        Returns void

data: ContextMenuCommandBuilder
name: string
rawRequires: string[]
requires: (undefined | Requirement)[] = []
toJSON: (() => RESTPostAPIContextMenuApplicationCommandsJSONBody)

Type declaration

    • (): RESTPostAPIContextMenuApplicationCommandsJSONBody
    • Serializes this builder to API-compatible JSON data.

      Remarks

      This method runs validations on the data before serializing it. As such, it may throw an error if the data is invalid.

      Returns RESTPostAPIContextMenuApplicationCommandsJSONBody

type: "USER" | "MESSAGE"

Methods

  • Parameters

    • callback: ((interaction: ContextMenuCommandInteraction<CacheType>) => void)
        • (interaction: ContextMenuCommandInteraction<CacheType>): void
        • Parameters

          • interaction: ContextMenuCommandInteraction<CacheType>

          Returns void

    Returns ContextMenu

Generated using TypeDoc