Overview
ArgentOS supports Discord as a channel, allowing your agent to interact in server channels and direct messages. The bot uses Discord’s Gateway (WebSocket) for real-time events and the REST API for sending messages.Prerequisites
- A Discord account
- A Discord server where you have Manage Server permissions
- ArgentOS gateway running
Setup
1
Create a Discord Application
- Go to the Discord Developer Portal
- Click New Application and give it a name
- Navigate to the Bot section
- Click Reset Token and copy the bot token
2
Configure Intents
In the Bot section, enable these Privileged Gateway Intents:
- Message Content Intent — required to read message text
- Server Members Intent — optional, for member lookups
- Presence Intent — optional, for online status
3
Invite the Bot
- Go to OAuth2 > URL Generator
- Select scopes:
bot,applications.commands - Select permissions:
Send Messages,Read Message History,Embed Links,Attach Files - Copy the generated URL and open it in your browser
- Select your server and authorize
4
Add the Channel
Configuration
Channel Scope
ThechannelScope option controls how Discord channels map to agent sessions:
