class ContextMenuCommandBuilder

extends

ContextMenuCommandBuilder_base
abstract
export declare abstract class ContextMenuCommandBuilder extends ContextMenuCommandBuilder_base

A builder that creates API-compatible JSON data for context menu commands.

Constructors

Constructs a new instance of the ContextMenuCommandBuilder class

abstract
toJSON(
validationOverride?: boolean
) : RESTPostAPIContextMenuApplicationCommandsJSONBody

Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.