Methods
add
- add(data: RESTPostAPIApplicationCommandsJSONBody, applicationId: string, guildId?: string): Promise<APIApplicationCommand>
-
Parameters
-
data: RESTPostAPIApplicationCommandsJSONBody
-
applicationId: string
-
Optional guildId: string
Returns Promise<APIApplicationCommand>
callback
- callback(interactionId: string, interactionToken: string, data: APIInteractionResponse): Promise<null>
-
Parameters
-
interactionId: string
-
interactionToken: string
-
data: APIInteractionResponse
Returns Promise<null>
callbackFile
- callbackFile(interactionId: string, interactionToken: string, data: { buffer: Buffer; name: string }, extra?: MessageTypes): Promise<null>
-
Parameters
-
interactionId: string
-
interactionToken: string
-
data: { buffer: Buffer; name: string }
-
buffer: Buffer
-
name: string
-
Returns Promise<null>
delete
- delete(interactionId: string, applicationId: string, guildId?: string): Promise<void>
-
Parameters
-
interactionId: string
-
applicationId: string
-
Optional guildId: string
Returns Promise<void>
get
- get(applicationId: string, guildId?: string): Promise<RESTGetAPIApplicationCommandsResult | RESTGetAPIApplicationGuildCommandsResult>
-
Parameters
-
applicationId: string
-
Optional guildId: string
Returns Promise<RESTGetAPIApplicationCommandsResult | RESTGetAPIApplicationGuildCommandsResult>
set
- set(data: RESTPutAPIApplicationCommandsJSONBody | RESTPutAPIApplicationGuildCommandsJSONBody, applicationId: string, guildId?: string): Promise<RESTPutAPIApplicationCommandsResult | RESTPutAPIApplicationGuildCommandsResult>
-
Parameters
-
data: RESTPutAPIApplicationCommandsJSONBody | RESTPutAPIApplicationGuildCommandsJSONBody
-
applicationId: string
-
Optional guildId: string
Returns Promise<RESTPutAPIApplicationCommandsResult | RESTPutAPIApplicationGuildCommandsResult>
update
- update(data: Partial<RESTPostAPIApplicationCommandsJSONBody>, applicationId: string, interactionId: string, guildId?: string): Promise<APIApplicationCommand>
-
Parameters
-
data: Partial<RESTPostAPIApplicationCommandsJSONBody>
-
applicationId: string
-
interactionId: string
-
Optional guildId: string
Returns Promise<APIApplicationCommand>
Interactions resource