Skip to content

Discord

Connecting Talon to Discord requires creating a bot application in the Discord Developer Portal, enabling the correct gateway intents, and inviting the bot to your server with the right permissions.

Go to discord.com/developers/applications and sign in.

Click New Application, give it a name (this becomes the bot’s display name), and click Create.

In the left sidebar, click Bot.

Click Add Bot and confirm. Once created:

  • Click Reset Token to generate your bot token.
  • Copy the token immediately — you cannot view it again after leaving the page.

Still on the Bot settings page, scroll down to Privileged Gateway Intents.

Toggle on Message Content Intent. Without this, your bot receives message events but cannot read the actual text of messages.

Click Save Changes.

In the left sidebar, click OAuth2, then URL Generator.

Under Scopes, check:

  • bot

Under Bot Permissions, check:

  • Read Messages / View Channels
  • Send Messages
  • Read Message History

Copy the generated URL at the bottom of the page, open it in your browser, and select the server you want to add the bot to.

{
"channels": {
"discord": {
"accounts": {
"my-server": {
"bot_token": "MTIzN..."
}
}
}
}
}

Restart Talon. The bot will come online in your server and respond to messages in any channel it can see.

FieldRequiredDescription
bot_tokenYesThe bot token from the Discord Developer Portal
allow_fromNoList of Discord user IDs (as strings) allowed to message the bot
modelNoOverride the default AI model for this account

Use allow_from with Discord user IDs to control who can interact with the bot. You can find a user ID by enabling Developer Mode in Discord settings (Appearance > Developer Mode), then right-clicking a user and selecting Copy User ID.

{
"channels": {
"discord": {
"accounts": {
"my-server": {
"bot_token": "MTIzN...",
"allow_from": ["123456789012345678"]
}
}
}
}
}

Discord enforces a 2000 character limit per message. Talon automatically splits long responses into multiple sequential messages so the full reply is always delivered.

Add multiple entries under accounts to connect Talon to several Discord servers at once, each with its own bot or the same bot added to different servers:

{
"channels": {
"discord": {
"accounts": {
"personal-server": {
"bot_token": "MTIzN...",
"allow_from": ["123456789012345678"]
},
"team-server": {
"bot_token": "MTIzN...",
"allow_from": ["123456789012345678", "876543210987654321"]
}
}
}
}
}