Skip to content

createInteractionsHandler

createInteractionsHandler(options): (request) => Effect<Response, never, DiscordRest>

Defined in: packages/platform-discord/src/http/handler.ts:361

A Fetch API handler for Discord’s Interactions Endpoint URL.

Inline mode processes before responding, so it can return modals and the first message/update as the initial response. Deferred mode acknowledges immediately and finishes through REST; use it for slow work and prefer an interaction flow that does not open modals.

DiscordInteractionsHandlerOptions

(request) => Effect<Response, never, DiscordRest>