← Back
Discord Connection Setup
Discord Plugin Administrator Setup
To enable users to connect their Discord servers, you must first create a Discord Application, configure it with a Bot user, and add its credentials to the Toolstream admin settings.
1. Create a New Application
- Go to the Discord Developer Portal and log in.
- Click the "New Application" button in the top-right corner.
- Give your application a name (e.g., "Toolstream Platform Bot") and agree to the terms.
2. Get Application Credentials
- Once your application is created, go to the "General Information" tab.
- Here you can find the Application ID, which is your Client ID. Copy this value.
- Go to the "OAuth2" tab. You will find the Client Secret here. Click to reveal and copy it.
3. Create a Bot and Get the Token
- Navigate to the "Bot" tab in the left-hand menu.
- Click the "Add Bot" button and confirm.
- On the same "Bot" page, you must enable two Privileged Gateway Intents:
- Presence Intent: Toggle this ON.
- Server Members Intent: Toggle this ON.
- Click "Save Changes".
- At the top of the "Bot" page, click the "Reset Token" button to generate and reveal your bot's token. This is the only time you will see the full token. Copy it immediately. This is the
bot_token
.
4. Configure the Redirect URI
- Go back to the "OAuth2" -> "General" tab.
- Click "Add Redirect" and paste the following exact URL:
https://toolstream.dev/ui/connections/oauth/callback/discord_tool
- Click "Save Changes" at the bottom of the page.
5. Enter Credentials in Toolstream
- Navigate to the Toolstream Admin Settings -> Plugin Settings page.
- Find the "Discord" plugin section.
- Paste the Client ID, Client Secret, and Bot Token into the corresponding fields and save.
The Discord plugin is now configured. Your users will be able to click "Connect" and authorize this application to join their servers.