Talon logs in as a bot of your own Discord application. You create it once in the Discord developer portal.
1. Create the application and the token#
- Open the Discord developer portal and click New Application.
- Open Bot, click Reset Token and copy the token. Keep it private. This is the value for
TALON_TOKEN.
2. Turn on the intents#
On the same Bot page, turn on these privileged intents:
| Intent | Needed | Why |
|---|---|---|
| Server Members Intent | Always | Welcome and leave messages, leveling, logging, verification, invite tracking and role features |
| Message Content Intent | Always | Automod, leveling, counting, custom commands and prefix commands read message text |
| Presence Intent | Only for status and vanity roles and the online counter | Also set Presences: true in config.yml. Without that setting Talon does not ask for it |
Talon also uses the intents that need no switch: Guilds, Guild Messages, Voice States, Message Reactions, Moderation, Invites, Direct Messages and Expressions.
If a privileged intent is off, the bot cannot log in and the console says Used disallowed intents.
3. Invite the bot#
Invite Talon with a link that has two scopes, bot and applications.commands. Replace CLIENT_ID with the Application ID of your application, on the General Information page:
https://discord.com/oauth2/authorize?client_id=CLIENT_ID&scope=bot+applications.commands&permissions=8
permissions=8 is Administrator, the simplest choice. Without Administrator, give the role of Talon the permissions for the modules you use:
| Permission | Used for |
|---|---|
| View Channels, Send Messages, Embed Links, Attach Files, Read Message History, Add Reactions | Almost everything the bot posts |
| Send Messages in Threads, Create Public Threads, Create Private Threads, Manage Threads | Tickets in threads, media channels, suggestions and question of the day threads, closing ticket threads |
| Manage Roles | Roles for verification, jail, reaction roles, join roles, level roles, status roles and staff ranks |
| Manage Channels | Ticket channels, lockdown, the verification setup, temporary voice, backup restore, slowmode |
| Manage Messages | Purge, automod and sticky messages |
| Kick Members, Ban Members, Moderate Members | Moderation commands, automod punishments, timeouts and jail |
| Manage Nicknames | /mod nick, role nicknames, AFK nicknames and hoist removal |
| Manage Server | Reading the invites of the server for invite tracking |
| View Audit Log | Logging and anti nuke |
| Manage Webhooks, Manage Expressions | Restoring a backup, and /util steal |
| Move Members | Voice waiting room and temporary voice |
| Connect, Speak | Music |
Discord only lets a bot change roles and nicknames of members whose highest role is below the highest role of the bot. Move the role of Talon above the roles it should manage.
4. Find your user ID#
Talon has bot owners, set with OwnerIds in config.yml or TALON_OWNER_IDS. Bot owners pass every permission check of the bot and can open the dashboard of every server the bot is in. Turn on Developer Mode in Discord, right click your name and click Copy User ID. Separate more owners with commas.
5. For the dashboard#
The dashboard signs people in with Discord. Open OAuth2 in the developer portal and copy the Client Secret. Then follow Web dashboard.