export declare class InteractionsAPI
Constructors
rest: RESTwebhooks: WebhooksAPI)
constructor(Constructs a new instance of the InteractionsAPI
class
createAutocompleteResponseinteractionId: SnowflakeinteractionToken: stringcallbackData: APICommandAutocompleteInteractionResponseCallbackDataoptions?: Pick<RequestData, 'signal'>) : Promise<void> (
Sends an autocomplete response to an interaction
createModalinteractionId: SnowflakeinteractionToken: stringcallbackData: APIModalInteractionResponseCallbackDataoptions?: Pick<RequestData, 'signal'>) : Promise<void> (
Sends a modal response to an interaction
deferinteractionId: SnowflakeinteractionToken: stringdata: APIInteractionResponseDeferredChannelMessageWithSource['data']options?: Pick<RequestData, 'signal'>) : Promise<void> (
Defers the reply to an interaction
deferMessageUpdate) : Promise<void> (
Defers an update from a message component interaction
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: APIInteractionResponseCallbackData & {
files?: RawFile[];
}messageId?: 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
followUpapplicationId: SnowflakeinteractionToken: stringbody: APIInteractionResponseCallbackData & {
files?: RawFile[];
}options?: Pick<RequestData, 'signal'>) : Promise<void> (
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: APIInteractionResponseCallbackData & {
files?: RawFile[];
}options?: Pick<RequestData, 'signal'>) : Promise<void> (
Replies to an interaction
updateMessageinteractionId: SnowflakeinteractionToken: stringcallbackData: APIInteractionResponseCallbackData & {
files?: RawFile[];
}options?: Pick<RequestData, 'signal'>) : Promise<void> (
Updates the the message the component interaction was triggered on