export declare class InteractionsAPIConstructors
constructor(rest: RESTwebhooks: WebhooksAPI)
Constructs a new instance of the InteractionsAPI class
createAutocompleteResponse(interactionId: SnowflakeinteractionToken: stringcallbackData: CreateAutocompleteResponseOptions & { with_response: true; }options?: Pick<RequestData, 'signal'>) : Promise<RESTPostAPIInteractionCallbackWithResponseResult>
Sends an autocomplete response to an interaction and returns an interaction callback object
createModal(interactionId: SnowflakeinteractionToken: stringcallbackData: CreateModalResponseOptions & { with_response: true; }options?: Pick<RequestData, 'signal'>) : Promise<RESTPostAPIInteractionCallbackWithResponseResult>
Sends a modal response to an interaction and returns an interaction callback object
defer(interactionId: SnowflakeinteractionToken: stringbody: CreateInteractionDeferResponseOptions & { with_response: true; }options?: Pick<RequestData, 'signal'>) : Promise<RESTPostAPIInteractionCallbackWithResponseResult>
Defers the reply to an interaction and returns an interaction callback object
deferMessageUpdate(interactionId: SnowflakeinteractionToken: stringbody: RESTPostAPIInteractionCallbackQuery & { with_response: true; }options?: Pick<RequestData, 'signal'>) : Promise<RESTPostAPIInteractionCallbackWithResponseResult>
Defers an update from a message component interaction and returns an interaction callback object
deleteReply(applicationId: SnowflakeinteractionToken: stringmessageId?: Snowflake | '@original'options?: Pick<RequestData, 'signal'>) : Promise<void>
Deletes the initial reply to an interaction
See also: https://discord.com/developers/docs/interactions/receiving-and-responding#delete-original-interaction-responsehttps://discord.com/developers/docs/interactions/receiving-and-responding#delete-followup-message
editReply(applicationId: SnowflakeinteractionToken: stringcallbackData: EditInteractionResponseOptionsmessageId?: Snowflake | '@original'options?: Pick<RequestData, 'signal'>) : Promise<APIMessage>
Edits the initial reply to an interaction
See also: https://discord.com/developers/docs/interactions/receiving-and-responding#edit-original-interaction-responsehttps://discord.com/developers/docs/interactions/receiving-and-responding#edit-followup-message
followUp() : Promise<APIMessage>
Reply to a deferred interaction
See also: https://discord.com/developers/docs/interactions/receiving-and-responding#create-followup-message
getOriginalReply() : Promise<APIMessage>
Fetches the initial reply to an interaction
launchActivity(interactionId: SnowflakeinteractionToken: stringbody: RESTPostAPIInteractionCallbackQuery & { with_response: true; }options?: Pick<RequestData, 'signal'>) : Promise<RESTPostAPIInteractionCallbackWithResponseResult>
Launches an activity and returns an interaction callback object
reply(interactionId: SnowflakeinteractionToken: stringbody: CreateInteractionResponseOptions & { with_response: true; }options?: Pick<RequestData, 'signal'>) : Promise<RESTPostAPIInteractionCallbackWithResponseResult>
Replies to an interaction and returns an interaction callback object
updateMessage(interactionId: SnowflakeinteractionToken: stringcallbackData: CreateInteractionUpdateMessageResponseOptions & { with_response: true; }options?: Pick<RequestData, 'signal'>) : Promise<RESTPostAPIInteractionCallbackWithResponseResult>
Updates the message the component interaction was triggered on and returns an interaction callback object