Abstract

ContextMenuCommandBuilder

export declare abstract class ContextMenuCommandBuilder extends ContextMenuCommandBuilder_base
export declare abstract class ContextMenuCommandBuilder extends ContextMenuCommandBuilder_base
A builder that creates API-compatible JSON data for context menu commands.

Extends

ContextMenuCommandBuilder_base
constructor(data?)
Constructs a new instance of the ContextMenuCommandBuilder class
NameTypeOptionalDescription
dataPartial<RESTPostAPIContextMenuApplicationCommandsJSONBody>YesNone
Abstract
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.
NameTypeOptionalDescription
validationOverridebooleanYesForce validation to run/not run regardless of your global preference