UVI
Connectors

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

  1. Open the Discord Developer Portal and press New Application; the name you give it becomes the bot's name.
  2. 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:

  1. Open OAuth2 → URL Generator in the left menu.
  2. 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).
  3. Open the generated URL in the browser and add the bot to your server.

4. Connect in UVI

  1. On the connector card fill DISCORD_BOT_TOKEN. Leave GATEWAY_INTENTS at its default unless you have a specific reason to change it.
  2. 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:

ToolWhat it does
discord_post_messagePost a message to a channel
discord_replyReply to a message
discord_dm_userSend a direct message to a user
discord_fetch_messages / discord_get_messageRead recent messages / one message
discord_edit_message / discord_delete_messageEdit / delete a message
discord_add_reactionReact to a message
discord_list_channelsList the server's channels
discord_create_channel / discord_edit_channel / discord_delete_channelManage channels
discord_set_channel_permissionSet a permission override on a channel (careful)
discord_list_bansList the server's bans
discord_add_member_role / discord_remove_member_roleManage 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.

On this page