Skip to content

Connections

Discord

A /support command for your Discord server. Requests become Slack conversations and your replies arrive as direct messages from your bot.

On this page

Members of your Discord server run /support; each request becomes a Slack conversation, and your thread replies are sent as direct messages from your bot.

Discord only delivers ordinary messages over a live Gateway connection, so Channlize uses Discord's Interactions Endpoint instead: customers use the /support command (or its form), and replies go back as DMs.

Setup

About five minutes in the Discord Developer Portal. Members run /support; you answer from Slack and the bot replies by DM. In Channlize, Connections → New connection → Discord. The setup screen shows the connection URL (the Interactions Endpoint URL) above these steps, with the secret fields and buttons at the step that needs them.

  1. Create an application: Applications → New Application (Open the Developer Portal). Name it (e.g. Acme Support), accept the terms and click Create.
  2. Paste the Application ID into Channlize: General Information → Application ID (Open General Information).
  3. Paste the Public Key into Channlize: General Information → Public Key (64 hexadecimal characters). Every interaction is verified with it.
  4. Set the Interactions Endpoint URL: General Information → Interactions Endpoint URL. Paste the URL and click Save Changes. Discord checks it right away, so save the Public Key first.
  5. Paste the bot token into Channlize: Bot → Token → Reset Token (Open the Bot page). It is used to register /support and to send your replies as direct messages.
  6. Register /support: adds /support to your application, with an optional message. Without one it opens a "Contact support" form.
  7. Add the bot to your server: OAuth2 → OAuth2 URL Generator. Open the invite the setup screen shows (scopes bot and applications.commands, no permissions needed) and pick your server.

Optional, answer from Slack: turn on Reply on Discord under Settings so replies from Slack or the dashboard are sent by DM. Discord also sends deliberately bad signatures to check the endpoint; those show as rejected on purpose.

First event: the screen shows Waiting for the first event… until one arrives. Run /support in your server. Then click Done to keep the connection. Cancel deletes the draft and its URL, and removes the /support command Channlize registered at Discord.

Signature

Every interaction is verified with Ed25519 against your application's Public Key, over X-Signature-Timestamp plus the body, and timestamps more than 5 minutes off are rejected. Discord also sends deliberately bad signatures to test the endpoint; those are rejected on purpose.

Default mappings

EventAction
support.command, support.formConversation
support.form_opened, support.button, pingLog
interaction.from_botIgnore

The member gets an ephemeral confirmation: "Thanks, we got your message. We'll answer you here in a direct message from this bot."

Two-way replies

Turn on replies. Thread replies are sent as a direct message from your bot, up to 2,000 characters.