Discord icon

Discord

Interact with Discord API - users, messages, webhooks, guilds, interactions, and more

Actions193

Interaction Response → Create Initial Callback

AI-generated

Summary

Sends an initial Discord interaction callback using the interaction ID and token. Choose a response type to acknowledge the interaction, send or update a message, provide autocomplete choices, show a modal, or launch an activity.

Inputs

  • Authentication — Select Bot Token (default) or OAuth2 (User Token).
  • Interaction (required) — Discord interaction snowflake ID.
  • Interaction Token (required) — Token from the Discord interaction payload.
  • Response Type (required) — Select callback type 4, 5, 6, 7, 8, 9, or 12. Types 5 and 6 defer a response; 4 and 7 use message data; 8 uses autocomplete choices; 9 uses modal fields; 12 launches the associated activity.
  • Choices — For type 8, a JSON array of autocomplete choices, each with a name and value and optional name_localizations.
  • Custom ID — For type 9, the modal custom ID, up to 100 characters.
  • Title — For type 9, the modal title, up to 45 characters.
  • Text Inputs — For type 9, add modal text inputs. Each becomes its own action row, with up to 5 rows. Inputs support custom ID, label, length limits, placeholder, required status, style, and an initial value.
  • Modal Components — For type 9, optional raw JSON action rows containing text inputs; appended after guided text inputs.
  • Payload — For types 4 and 7, optional raw Discord JSON merged into the callback's data; its keys override guided fields.
  • Request Options — Optional request settings for batching, SSL certificate validation, proxy, and timeout.

Output shape

A single Discord REST API response record.

The response body depends on the selected callback type; deferred and activity-launch callbacks may return no message data.

Links

Discussion