Connect Discord
Tell your assistant you want to connect:Create a new application
Go to discord.com/developers/applications and click New Application. Give it a name — this will be your bot’s application name.
Create the bot and copy the token
In the left sidebar, click Bot. Click Add Bot to confirm, then click Reset Token and copy the token that appears.
Enable Message Content Intent
On the same Bot page, scroll down to Privileged Gateway Intents and enable:
- Message Content Intent — required. Without this, the bot cannot read message content and will crash with error 4014.
- Server Members Intent — recommended for role-based allowlists and name resolution.
- Presence Intent — optional.
Generate an invite link and add the bot to your server
Go to Installation → Guild Install. Under Scopes, select
bot and applications.commands. Under Permissions, select at minimum Send Messages — recommended additions: View Channels, Read Message History, Embed Links, Attach Files, Add Reactions.Copy the generated install link, open it in your browser, select your server, and click Continue.Enable Developer Mode and copy your user ID
In Discord, go to User Settings → Advanced and enable Developer Mode. Right-click your own avatar and select Copy User ID. You will need this to configure the allowlist.
Important: Discord IDs are strings
Discord uses 64-bit “Snowflake” integers for all IDs — users, servers, channels, roles. These numbers exceed JavaScript’s safe integer range and must always be stored as strings.DM policy
| Policy | Behavior |
|---|---|
pairing | Unknown senders get a 6-digit code. You approve via the agent. |
allowlist | Only user IDs you specify can interact. |
open | Accept DMs from anyone. |
Guild and channel configuration
By default, the bot responds only when @mentioned in server channels. To change this for a specific server or channel:#general and #support are separate conversations.
Security
Discord is a messaging channel. The agent cannot run shell commands, execute processes, or invoke bash scripts from a Discord conversation — regardless of what the message says. This restriction is architectural. What Discord conversations can do: read files, search memory, send messages, use web tools, query APIs.Troubleshooting
Error 4014 / Fatal Gateway error Message Content Intent is not enabled. Go to the Developer Portal → your application → Bot → Privileged Gateway Intents → enable Message Content Intent → restart the GenosOS gateway. Error 401 / token verification failed You copied the wrong value. The Public Key (on the General Information page) is a hex string — it is not the bot token. Go to Bot → Reset Token and copy the new token. Bot is connected but does not respond in the server Check the guild configuration. By default,groupPolicy is allowlist and the bot only responds to @mentions. Ask your assistant: “Why isn’t the Discord bot responding in my server?”