v1

latestOpenAPI 3.0.12026-07-17310206.9 KB

Defers a slash command response in Discord.

This function acknowledges a Discord slash command interaction and allows the bot more time to process the command. It takes an interaction token and an optional parameter to set the response as ephemeral. The function returns a Promise that resolves when the interaction is successfully deferred.

post/deferInteraction

Request body

Response

Interaction successfully deferred

successboolean

Indicates if the interaction was successfully deferred