export declare class InteractionsAPI
Constructors
rest: RESTwebhooks: WebhooksAPI)
constructor(Constructs a new instance of the InteractionsAPI
class
createAutocompleteResponseinteractionId: 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
createModalinteractionId: 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
deferinteractionId: SnowflakeinteractionToken: stringbody: CreateInteractionDeferResponseOptions & { with_response: true; }options?: Pick<RequestData, 'signal'>) : Promise<RESTPostAPIInteractionCallbackWithResponseResult> (
Defers the reply to an interaction and returns an interaction callback object
deferMessageUpdateinteractionId: 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
deleteReplyapplicationId: 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
editReplyapplicationId: 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
replyinteractionId: SnowflakeinteractionToken: stringbody: CreateInteractionResponseOptions & { with_response: true; }options?: Pick<RequestData, 'signal'>) : Promise<RESTPostAPIInteractionCallbackWithResponseResult> (
Replies to an interaction and returns an interaction callback object
updateMessageinteractionId: 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