class InteractionsAPI

declare class InteractionsAPI

Constructors

constructor(
rest: REST
webhooks: WebhooksAPI
)

Constructs a new instance of the InteractionsAPI class

createAutocompleteResponse() : Promise<void>

Sends an autocomplete response to an interaction

createModal(
interactionId: Snowflake
interactionToken: string
) : Promise<void>

Sends a modal response to an interaction

defer(
interactionId: Snowflake
interactionToken: string
) : Promise<void>

Defers the reply to an interaction

deferMessageUpdate(
interactionId: Snowflake
interactionToken: string
) : Promise<void>

Defers an update from a message component interaction

deleteReply(
applicationId: Snowflake
interactionToken: string
) : Promise<void>

Deletes the initial reply to an interaction

editReply(
applicationId: Snowflake
interactionToken: string
messageId?: string
) : Promise<discord_api_types_v10.APIMessage>

Edits the initial reply to an interaction

followUp(
applicationId: Snowflake
interactionToken: string
) : Promise<void>

Reply to a deferred interaction

getOriginalReply(
applicationId: Snowflake
interactionToken: string
) : Promise<discord_api_types_v10.APIMessage>

Fetches the initial reply to an interaction

reply(
interactionId: Snowflake
interactionToken: string
) : Promise<void>

Replies to an interaction

updateMessage(
interactionId: Snowflake
interactionToken: string
) : Promise<void>

Updates the the message the component interaction was triggered on