declare class InteractionsAPI
Constructors
rest: RESTwebhooks: WebhooksAPI)
constructor(rest: REST
webhooks: WebhooksAPI
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
Deletes the initial reply to an interaction
editReplyapplicationId: SnowflakeinteractionToken: stringdata: APIInteractionResponseCallbackData & {
files?: RawFile[];
}messageId?: string) : Promise<discord_api_types_v10.APIMessage> (
applicationId: Snowflake
interactionToken: string
data: APIInteractionResponseCallbackData & {
files?: RawFile[];
}
messageId?: string
Edits the initial reply to an interaction
followUpapplicationId: SnowflakeinteractionToken: stringdata: APIInteractionResponseCallbackData & {
files?: RawFile[];
}) : Promise<void> (
applicationId: Snowflake
interactionToken: string
data: APIInteractionResponseCallbackData & {
files?: RawFile[];
}
Reply to a deferred interaction
getOriginalReply) : Promise<discord_api_types_v10.APIMessage> (
Fetches the initial reply to an interaction
replyinteractionId: SnowflakeinteractionToken: stringdata: APIInteractionResponseCallbackData & {
files?: RawFile[];
}) : Promise<void> (
interactionId: Snowflake
interactionToken: string
data: APIInteractionResponseCallbackData & {
files?: RawFile[];
}
Replies to an interaction
updateMessageinteractionId: SnowflakeinteractionToken: stringdata: APIInteractionResponseCallbackData & {
files?: RawFile[];
}) : Promise<void> (
interactionId: Snowflake
interactionToken: string
data: APIInteractionResponseCallbackData & {
files?: RawFile[];
}
Updates the the message the component interaction was triggered on