Discord
Talk to your companion from Discord
Talk to your companion from Discord: DM your bot and the reply comes back in the chat; add it to a trusted channel to chat with friends.
Setup
1. Create the application and get the token
- Open the Discord Developer Portal and press New Application; the name you give it becomes the bot's name.
- Go to the Bot section in the left menu and press Reset Token → copy the token: this is your
DISCORD_BOT_TOKEN. It's shown only once, so reset it again if you lose it.
2. Enable Message Content Intent
On the same Bot page scroll down to Privileged Gateway Intents and switch on Message Content Intent, then save the changes.
This is the step everyone misses. Without the Message Content Intent, the bot connects but never receives message texts: the connector stays silently "working" while ignoring everything.
3. Invite the bot to your server
The bot can only talk to you (even in DM) if you share a server with it:
- Open OAuth2 → URL Generator in the left menu.
- Tick the bot scope, then below tick the permissions: View Channels, Send Messages, Read Message History (add channel-management permissions only if you plan to use them).
- Open the generated URL in the browser and add the bot to your server.
4. Connect in UVI
- On the connector card fill
DISCORD_BOT_TOKEN. LeaveGATEWAY_INTENTSat its default unless you have a specific reason to change it. - Press Connect, then fill in your Owner ID below the token: enable Developer Mode in Discord (User Settings → Advanced), right-click your name → Copy User ID.
Tools
The communication core plus a small server-management set:
| Tool | What it does |
|---|---|
discord_post_message | Post a message to a channel |
discord_reply | Reply to a message |
discord_dm_user | Send a direct message to a user |
discord_fetch_messages / discord_get_message | Read recent messages / one message |
discord_edit_message / discord_delete_message | Edit / delete a message |
discord_add_reaction | React to a message |
discord_list_channels | List the server's channels |
discord_create_channel / discord_edit_channel / discord_delete_channel | Manage channels |
discord_set_channel_permission | Set a permission override on a channel (careful) |
discord_list_bans | List the server's bans |
discord_add_member_role / discord_remove_member_role | Manage member roles |
Access settings
These fields below the token control who the companion listens to on this messenger. Press Save access settings to apply them.
- Owner ID — your numeric user ID. In direct chats, the companion replies only to this ID; while it is empty, it replies to no one.
- Speak replies out loud — replies to this messenger are also spoken out loud on the desktop. Off means text-only replies.
- Trusted chats — group chats the companion also responds in (Mentions — only when addressed, or All messages). Everyone there talks to the same companion and shares its conversation context: replies may reveal details from your other chats, so add only chats you trust.
Incoming messages join your current session with the companion, which answers them in order. This works even when the app window is hidden. Your STT provider transcribes voice messages; your LLM understands photos if it supports vision. Video is not supported.