Properties
Private
callback
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
Private
Readonly
data
data: ContextMenuCommandBuilder
Private
Readonly
rawRequires
rawRequires: string[]
toJSON
toJSON: (() => RESTPostAPIContextMenuApplicationCommandsJSONBody)
Type declaration
-
- (): RESTPostAPIContextMenuApplicationCommandsJSONBody
-
Returns RESTPostAPIContextMenuApplicationCommandsJSONBody
type
type: "USER" | "MESSAGE"
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.