Discord
Channels

Discord

Connect a Discord bot so your AI agent answers in servers and DMs over a persistent gateway connection.

The Discord channel connects a bot you create in the Discord Developer Portal. Asks holds a persistent gateway connection to Discord — there is no public webhook to expose — and answers where the bot is present. Conversations appear in the inbox like any other channel.

Availability — this channel is rolling out and may not be enabled for your workspace yet. It will appear under Channels in your dashboard as soon as it's available.

Prerequisites

  • A Discord account with access to the Discord Developer Portal.
  • Permission to add bots to the server where you want the agent.

Connect Discord

Create an application

In the Developer Portal, click New Application and name it — this name is what customers see.

Configure the bot and copy its token

Open the Bot tab. Enable Message Content Intent — without it Discord withholds the text of ordinary server messages, and the channel will show an error shortly after connecting. Then click Reset Token and copy the bot token.

Invite the bot to your server

Use the invite URL with your application ID (it's also shown on the channel page after you connect):

Code
https://discord.com/oauth2/authorize?client_id=YOUR_APPLICATION_ID&scope=bot+applications.commands&permissions=309237730304

The permission set covers messaging only.

Paste the token in Asks

Go to app.asks.app/channels/discord, paste the bot token, and connect. Asks validates the token and opens the gateway connection.

Discord channel empty state with the five-step setup guide, the invite URL, and the bot token field
The Discord connect page.

Verify it works — @mention the bot in a server channel (or DM it) with a question your knowledge base covers. The reply should arrive in Discord and the conversation should appear in your Asks inbox.

How messaging works

  • DMs to the bot are always answered.
  • Server channels default to mention-only: the bot replies when it's @mentioned or when someone replies to one of its messages. On the channel's settings page, Reply mode can be switched to reply to every message in channels the bot can see, and Reply in thread controls whether answers post in threads.
  • Attachments sent to the bot (up to 25 MB each) are captured into the conversation.
  • There are no messaging-window restrictions on Discord.
  • Messages from other bots and webhooks are ignored, so the bot can't get into reply loops. System messages (joins, pins) are skipped.

The channel page shows a live count of the servers the bot is in, along with the invite URL. You can connect more than one bot; each becomes its own channel.

Troubleshooting

The channel shows an error right after connecting

Connecting only validates the token, so intent problems surface a moment later, when Discord closes the gateway connection. Usually the Message Content Intent is off (gateway close code 4014) — enable it on the application's Bot tab in the Developer Portal, then reconnect. An invalid or reset token surfaces the same way, with its own error message (close code 4004).

The bot went offline

If you reset the token in the Developer Portal, the old token stops working and the channel errors. Reconnect with the new token from app.asks.app/channels/discord.

The bot ignores messages in a channel

By default it only answers @mentions and replies to its own messages. Mention it directly, or set Reply mode to reply to every message.

What happens when I disconnect?

Asks closes the gateway connection and marks the channel disconnected. Conversations stay in your inbox; reconnecting reopens the connection.