InteractionsAPI

declare class InteractionsAPI
declare class InteractionsAPI

No summary provided.

constructor(rest, webhooks)
Constructs a new instance of the InteractionsAPI class
NameTypeOptionalDescription
restRESTNoNone
webhooksWebhooksAPINoNone
createAutocompleteResponse(interactionId, interactionToken, data):Promise<void>
NameTypeOptionalDescription
interactionIdSnowflakeNoThe id of the interaction
interactionTokenstringNoThe token of the interaction
dataAPICommandAutocompleteInteractionResponseCallbackDataNoData for the autocomplete response
createModal(interactionId, interactionToken, data):Promise<void>
NameTypeOptionalDescription
interactionIdSnowflakeNoThe id of the interaction
interactionTokenstringNoThe token of the interaction
dataAPIModalInteractionResponseCallbackDataNoThe modal to send
defer(interactionId, interactionToken):Promise<void>
NameTypeOptionalDescription
interactionIdSnowflakeNoThe id of the interaction
interactionTokenstringNoThe token of the interaction
deferMessageUpdate(interactionId, interactionToken):Promise<void>
NameTypeOptionalDescription
interactionIdSnowflakeNoThe id of the interaction
interactionTokenstringNoThe token of the interaction
deleteReply(applicationId, interactionToken, messageId?):Promise<void>
NameTypeOptionalDescription
applicationIdSnowflakeNoThe application id of the interaction
interactionTokenstringNoThe token of the interaction
messageIdSnowflake | '@original'YesThe id of the message to delete. If omitted, the original reply will be deleted
editReply(applicationId, interactionToken, data, messageId?):Promise<discord_api_types_v10.APIMessage>
NameTypeOptionalDescription
applicationIdSnowflakeNoThe application id of the interaction
interactionTokenstringNoThe token of the interaction
dataAPIInteractionResponseCallbackData & { files?: RawFile[]; }NoThe data to use when editing the reply
messageIdSnowflake | '@original'YesThe id of the message to edit. If omitted, the original reply will be edited
followUp(applicationId, interactionToken, data):Promise<void>
NameTypeOptionalDescription
applicationIdSnowflakeNoThe application id of the interaction
interactionTokenstringNoThe token of the interaction
dataAPIInteractionResponseCallbackData & { files?: RawFile[]; }NoThe data to use when replying
getOriginalReply(applicationId, interactionToken):Promise<discord_api_types_v10.APIMessage>
NameTypeOptionalDescription
applicationIdSnowflakeNoThe application id of the interaction
interactionTokenstringNoThe token of the interaction
reply(interactionId, interactionToken, data):Promise<void>
NameTypeOptionalDescription
interactionIdSnowflakeNoThe id of the interaction
interactionTokenstringNoThe token of the interaction
dataAPIInteractionResponseCallbackData & { files?: RawFile[]; }NoThe data to use when replying
updateMessage(interactionId, interactionToken, data):Promise<void>
Updates the the message the component interaction was triggered on
NameTypeOptionalDescription
interactionIdSnowflakeNoThe id of the interaction
interactionTokenstringNoThe token of the interaction
dataAPIInteractionResponseCallbackData & { files?: RawFile[]; }NoThe data to use when updating the interaction