export declare class InteractionsAPI
Constructors
rest: RESTwebhooks: WebhooksAPI)
constructor(Constructs a new instance of the InteractionsAPI
class
Sends an autocomplete response to an interaction
createModal) : Promise<void> (
Sends a modal response to an interaction
Defers the reply to an interaction
Defers an update from a message component interaction
deleteReply) : 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: stringdata: APIInteractionResponseCallbackData & {
files?: RawFile[];
}messageId?: Snowflake | '@original') : 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: stringdata: APIInteractionResponseCallbackData & {
files?: RawFile[];
}) : 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: stringdata: APIInteractionResponseCallbackData & {
files?: RawFile[];
}) : Promise<void> (
Replies to an interaction
updateMessageinteractionId: SnowflakeinteractionToken: stringdata: APIInteractionResponseCallbackData & {
files?: RawFile[];
}) : Promise<void> (
Updates the the message the component interaction was triggered on