Skip to content
OneviumDocs
On this page

Connect a Discord bot

Create a Discord application, grant test-channel access, connect Onevium, and verify message and conversation scope.

Copy for AIView Markdown

View Markdown

Copy for AI: includes the source and the complete article

Loading Markdown…

Download Markdown

Purpose#

Let a bot in a Discord test channel or direct message use your Onevium project assistant.

Before you start#

Prepare a test server and text channel, then open the Developer Portal. Use an official Bot Token, not personal-account automation. Consult the official guide for installation scope and permissions. Do not grant Administrator for a first test.

First task#

  1. Create an application and obtain its token on the Bot page. Store it securely.
  2. Install the bot in the test server. Allow viewing the target channel and sending messages, and check channel overrides.
  3. Follow Onevium's Discord setup help to check message intents. Check Message Content Intent when message-body access is needed, completing any required platform approval.
  4. Create a Discord connection in Onevium Channels. Validate the token, select the project, model, and conversation scope, then start.
  5. Mention the bot with “The test code is gamma,” then ask for the code.

Confirm success#

Both messages reach the correct conversation and replies return to the channel. Unauthorized channels remain inaccessible. Long replies may be split or updated; verify final readable content. Test direct messages and attachments separately.

Common problems#

  • Online but not reading: check intents, approval, channel permissions, and triggers.
  • Reading without replying: check sending permissions and rate-limit errors.
  • Reset token: update Onevium credentials and reconnect.

Next steps#

Choose conversation scope in the channel overview and constrain the assistant's work with the permissions guide.