How to Set Up DiscordSRV: Link Minecraft Chat to Discord
DiscordSRV is the plugin most servers use to connect Minecraft chat with a Discord channel. Players in game see Discord messages, and your Discord sees what's said in game, plus joins, leaves, deaths and advancements. Setup takes about 10 minutes, and almost every problem comes from one of three things: the wrong token, a missing intent, or a wrong channel ID.
plugins/ and start the server once. Create an application in the Discord Developer Portal, turn on Server Members Intent and Message Content Intent, reset and copy the bot token. In plugins/DiscordSRV/config.yml set BotToken: "your token" and Channels: {"global": "your channel ID"}. Invite the bot with the bot and applications.commands scopes, then restart the server.What you need
- A Paper, Purpur, Spigot or Folia server. DiscordSRV is a plugin, so it doesn't run on vanilla, Fabric or Forge. Not sure what you're on? See vanilla vs Paper vs Spigot vs Purpur.
- A Discord server where you have Manage Server permission, so you can add a bot.
- About 10 minutes.
DiscordSRV supports Minecraft 1.7.9 through 26.3, so the same plugin works on old and new servers.
Step 1: Install DiscordSRV
- Download the latest DiscordSRV
.jarfrom its Modrinth page. - Put it in your server's
pluginsfolder. - Start the server once, then stop it. This creates the
plugins/DiscordSRV/folder withconfig.ymland the other config files.
If you've never added a plugin before, how to add plugins to a Minecraft server covers it.
Step 2: Create the bot in the Discord Developer Portal
- Go to discord.com/developers/applications and click New Application. Name it whatever you want the bot to be called, like your server name.
- Open the Installation tab. Turn off User Install and set Install Link to None. DiscordSRV's docs recommend this so the bot can only be added the way you choose.
- Open the Bot tab.
- Under Privileged Gateway Intents, turn on both:
- Server Members Intent
- Message Content Intent
- Click Save Changes.
- While you're on the Bot tab, leave Public Bot turned off so nobody else can invite your bot.
Message Content Intent is the important one for chat. Without it the bot can't read what people type in Discord, so Discord messages never show up in game.
Step 3: Copy the bot token
- On the Bot tab, click Reset Token and confirm.
- Copy the token that appears. Discord only shows it once. If you lose it, reset it again.
Treat the token like a password. Anyone with it can control your bot. Don't post it in Discord, screenshots or support tickets. If it leaks, reset it right away and paste the new one into the config.
Step 4: Get your channel ID
Discord hides IDs until you turn on Developer Mode.
- In Discord, open User Settings, then Advanced, and turn on Developer Mode.
- Right-click the text channel you want for chat (for example
#minecraft-chat) and click Copy Channel ID.
The ID is a long number, around 18 or 19 digits.
Step 5: Edit config.yml
Open plugins/DiscordSRV/config.yml. The two lines you need are near the top.
Paste your token between the quotes:
BotToken: "paste-your-token-here"
Then put your channel ID into Channels:
Channels: {"global": "123456789012345678"}
Leave the word global alone. That's the name of the in-game chat channel, not your Discord channel. It only changes if you use a chat plugin with multiple channels, in which case you add more pairs:
Channels: {"global": "123456789012345678", "staff": "234567890123456789"}
Keep the quotes around the ID. YAML can mangle long numbers without them.
Optional: console channel
Right below is DiscordConsoleChannelId. If you set it to a second channel's ID, the server console is mirrored there, and anything typed in that channel runs as a console command.
DiscordConsoleChannelId: "345678901234567890"
Only do this with a private channel that only admins can see. Anyone who can type in it effectively has full control of your server. If you don't want this, leave it as the default zeros.
Save the file.
Step 6: Invite the bot to your Discord
- In the Developer Portal, open General Information and copy the Application ID.
- Open this link in your browser, with your Application ID pasted on the end:
https://discordapp.com/oauth2/authorize?scope=bot+applications.commands&client_id=
- Pick your Discord server and click Authorize.
Give the bot permissions
The bot needs to be able to see and post in your chat channel. The simplest way is to make a role for it:
- In your Discord server, go to Server Settings, then Roles, and create a role (for example "Bot").
- Give it at least View Channel, Send Messages, Embed Links, Read Message History and Manage Webhooks. Or give it Administrator if this is a private friends server and you don't want to think about it.
- Assign the role to the bot under Members.
If you later use role sync with a plugin like LuckPerms, the bot's role must sit above the roles it manages. See LuckPerms setup for ranks.
Step 7: Restart and test
- Start the server.
- Watch the console for DiscordSRV lines. A good start ends with the bot connecting with no errors.
- The bot should appear online in your Discord member list.
- Type something in game. It should show up in your Discord channel.
- Type something in the Discord channel. It should show up in game.
If you want to change how messages look later, most of the formats are in messages.yml in the same folder.
Troubleshooting
| What you see | Likely cause | Fix |
|---|---|---|
| Console says the token is invalid or the bot never comes online | Token wrong, has extra spaces, or was reset | Reset the token, paste it again inside the quotes |
| Error about disallowed or privileged intents | Intents not enabled | Turn on Server Members and Message Content intents, save, restart |
| Game chat goes to Discord, but Discord chat never shows in game | Message Content Intent is off | Enable it in the Bot tab and restart |
| Nothing goes to Discord at all | Wrong channel ID, or bot can't see the channel | Recopy the ID with Developer Mode, check the bot's role can view and send in that channel |
| Bot online but not in your server | Never invited, or invited to a different server | Use the invite link again and pick the right server |
| Config errors on startup | Broken YAML, often a missing quote or bracket | Compare your Channels line with the examples above |
Two other things that are easy to miss:
- Restart after every config change. The DiscordSRV docs use a full restart for setup.
- Check
latest.logif something's off. DiscordSRV is usually clear about what's wrong. See how to read latest.log.
Is it safe to use?
Yes, DiscordSRV is open source and widely used. The real risks are on your side: a leaked bot token, or a console channel that the wrong people can type in. Keep the token private and the console channel locked down, and you're fine.
On FreaksMC you can upload the jar and edit config.yml from the panel's Files tab, then restart from the Console.
Want a server that just runs fast?
FreaksMC servers run on AMD Ryzen 9 7950X3D processors with fast NVMe storage. Pick vanilla, Paper or a modpack and your server is ready in minutes.
See plans from $4/mo