Set up DiscordSRV: bot token, intents and channel IDs

Link Minecraft chat to Discord with DiscordSRV 1.30.5: the bot token, the two privileged intents, channel IDs, and what to do when it goes red.

Omne TeamUpdated Nov 17, 20268 min read

Quick answer Put DiscordSRV 1.30.5 in plugins/ on a Paper or Spigot server and start it once to generate plugins/DiscordSRV/config.yml [1][5]. Create a Discord application, switch on both privileged intents (SERVER MEMBERS and MESSAGE CONTENT) on its Bot page, and paste the bot token into BotToken [1]. Put your chat channel’s numeric ID in Channels, invite the bot, restart [1][7]. Skip the intents and the plugin disables itself and shows red in /plugins [9].

The two intent toggles live in Discord’s developer portal, not in Minecraft, so nothing in config.yml hints at them until the plugin fails. This walks the whole job in order, with the exact error text for each way it fails.

What version this covers

DiscordSRV 1.30.5 was published on 2026-04-24, and its release notes list one fix: “NMS issue with GameProfiles on MC 26.x” [5]. Modrinth tags that version for Minecraft up to 26.3 and for the Bukkit, Spigot, Paper, Purpur and Folia loaders [6]. That is a listing, not a test. We did not run 1.30.5 on a 26.3 server for this post.

Two traps in the official docs. The docs landing page still says “Supports All Minecraft Versions from 1.7.9 to 1.21.0”, which is stale [2]. And the same site hosts “Ascension” pages for DiscordSRV v3, which describe a future version and say they do not apply to version 1 [4]. Everything below is the 1.x plugin. The Initial Setup page was last updated on Aug 3, 2025, so I cross-checked the token, intent and channel steps against the plugin’s own source at the v1.30.5 tag.

DiscordSRV needs a Bukkit-API server: CraftBukkit, Spigot or Paper [1]. If you are still choosing, see Paper vs Spigot vs vanilla vs Fabric. The jar goes in like any other plugin, covered in how to install plugins on a Paper server.

Step 1: jar in, one restart

Put DiscordSRV-Build-<version>.jar in plugins/ and restart. That creates the plugins/DiscordSRV/ folder with config.yml in it [1]. It will not connect yet, because the token is still a placeholder. Expect an error about that in the log; step 3 fixes it.

Step 2: create the bot and turn on both intents

In the Discord Developer Portal, click New Application [1]. Then:

  1. On the Installation tab, disable User Install and set Install Link to None [1].
  2. On the Bot page, enable SERVER MEMBERS INTENT and MESSAGE CONTENT INTENT [1][12].
  3. Leave PUBLIC BOT unchecked so nobody else can invite your bot [1].

Discord calls these privileged gateway intents. An app has to enable them in the portal before it asks for them, and an app that asks without having them is disconnected with close code 4014 [12]. Discord’s gateway page says apps with fewer than 10,000 users can access privileged intents by enabling them in the Developer Portal [12]. That covers a bot on one community server.

Step 3: copy the token and keep it out of places it will leak

On the Bot page, under Token, click Reset Token and copy the new one [13]. You have to reset it to see it [1]. Paste it into config.yml:

BotToken: "<paste-your-bot-token-here>"

That is a placeholder for illustration, never a real token. The docs warn that anyone who has the token can hijack the bot, and that a leaked token should be reset in the portal immediately [1].

One detail the docs skip. The plugin looks for the token in a fixed order: a JVM property named DISCORDSRV_TOKEN, then an environment variable of the same name, then a file called .token in plugins/DiscordSRV/, and only then BotToken in the config [8]. If you back up your plugin folder, paste configs into support threads or commit them, a .token file containing only the token keeps it out of config.yml. Mind the order: once a .token file exists, the config value is ignored. I read this from the source and did not test it on a panel host.

Step 4: invite the bot and give it only what it uses

Copy the Application ID from General Information, open the authorization page the docs point to (scarsz.me/authorize), paste the ID, pick your server and click Authorize [1]. The scopes are bot applications.commands [1].

The docs call Administrator the easy route and note that it gives full control of your Discord server [1]. My pick is to skip it. Make a role called Bot with only what the features you turn on need [1]:

  • View Channel and Send Messages on the chat channel, and on the console channel if you use one
  • Embed Links for join, leave and death embeds
  • Add Reactions and Read Message History
  • Manage Roles, only if you want role sync

Assign that role to the bot. For role sync, the Bot role has to sit above every role you want synced [1].

Step 5: channel IDs are numbers, not names

In Discord, open User Settings, then Advanced, and turn on Developer Mode. Right-click your chat channel and choose Copy ID [1]. The shipped lines in config.yml look like this [7]:

Channels: {"global": "000000000000000000"}
DiscordConsoleChannelId: "000000000000000000"

Replace the zeros with your channel’s ID. Two things people get wrong. The word on the left, global, is the in-game chat channel’s name, not your Discord channel’s name; the config comment says so outright [7]. And DiscordConsoleChannelId takes a numeric ID, “NOT NAME” in the config’s words [7]. If you run TownyChat, its default channel is usually called general rather than global [7].

Join, leave, death and other message types go to the first channel in Channels unless you add a line for that type [7]. Apply a Channels edit with /discord reload. A BotToken change needs a full restart [7].

Step 6: restart and watch what comes back

Restart the server. A message typed in-game should appear in the Discord channel, and a message typed in that channel should appear in-game. If the plugin turned itself off, the log says why. The next section has the texts.

When it does not work

What you see Cause Fix
No bot token has been set in the config; a bot token is required to connect to Discord. The token is blank or still the shipped BOTTOKEN [7][8] Paste the real token, restart
An invalid length bot token (32) has been set in the config; a valid bot token is required to connect to Discord. The plugin rejects tokens shorter than 59 characters. At exactly 32 it appends Did you copy the "Client Secret" instead of the "Bot Token" into the config? [8] Use the token from Reset Token on the Bot page
DiscordSRV could not connect to Discord because: then The bot token is invalid on the next line Discord rejected the token [8][9] Reset it in the portal, paste again, restart
Your DiscordSRV bot is missing one or more of the following intents: Server Members Intent, Message Content Intent! An intent is off. The plugin disables itself, so it shows red in /plugins [9] Enable both on the Bot page, restart

The number in the second message is the length of what you pasted, so yours will differ. If the presence intent is among the ones DiscordSRV requests, the fourth message also lists “Guild Presences” and the log tells you to enable a third toggle, PRESENCE INTENT [9]. While the plugin is off after an intents failure, typing /discord in game answers “DiscordSRV is disabled: your DiscordSRV bot is lacking required intents.” [8]

If the plugin is green and the bot is online but nothing moves, it is not the intents, because a missing intent shuts the plugin down loudly [9]. Check these instead:

  • The ID in Channels is the channel’s numeric ID, copied with Developer Mode on [7].
  • The bot has View Channel and Send Messages on that specific channel. The docs list both as required for DiscordSRV channels [1].
  • You ran /discord reload or restarted after the edit [7].

The console channel is a remote control

The shipped config describes the console channel as the one that “receives messages which are then run as server commands by the console”, with the console streamed into it as well [7]. Anyone who can type in that channel can run commands as console. The default blacklist blocks only ?, op, deop and execute [7]. Make that channel visible to you and nobody else. Or leave DiscordConsoleChannelId blank, which the config says disables the console channel altogether [7].

There is a second door. DiscordChatChannelConsoleCommandEnabled ships as true, with DiscordChatChannelConsoleCommandRolesAllowed set to ["Owner", "Developer"] and a command whitelist of say, lag and tps that those same two roles bypass [7]. I did not trace how the plugin matches roles (by name or by ID). Check who holds a role with either name in your Discord, or set DiscordChatChannelConsoleCommandEnabled to false.

Role sync is optional, and needs more than the plugin

Skip this if all you want is chat. For role sync, players link accounts with /discord link, and /discord resync resynchronizes groups and roles [11]. You map group names to Discord role IDs in synchronization.yml, in the GroupRoleSynchronizationGroupsAndRolesToSync option [3]. Group names are case-sensitive, and for LuckPerms they are the group display names [3]. The docs also suggest a debug upload (/discordsrv debugger upload) to see which groups the plugin can see [3].

The docs never say what supplies those groups. The code does: the sync manager asks Vault’s permission service for them, and if no permission provider is registered with Vault it gets nothing and gives up [10]. So you need Vault plus a permissions plugin that registers with it. DiscordSRV lists Vault and LuckPerms only as soft dependencies, which is why the plugin loads fine without them [11]. LuckPerms basics are in whitelist and permissions setup.

What I did not verify

  • DiscordSRV 1.30.5 on a live 26.3 server.
  • The .token file and DISCORDSRV_TOKEN routes on a managed panel (read from source only).
  • How role names in the console-command settings are matched.
  • Whether account linking is strictly required for role sync.

Questions people ask

Does this work with Fabric or Forge, not just Paper/Spigot?

No. DiscordSRV's setup page lists a Bukkit-API server (CraftBukkit, Spigot, Paper and so on) as the prerequisite [1]. A Fabric or Forge server needs a different tool built for that ecosystem.

Why is DiscordSRV red in /plugins after I added the token?

The usual cause is the two privileged intents being off. On that disconnect the plugin disables itself and prints a banner starting 'Your DiscordSRV bot is missing one or more of the following intents' [9]. Turn on SERVER MEMBERS INTENT and MESSAGE CONTENT INTENT on the Bot page and restart [1].

Do players have to link their accounts?

Not for chat. The shipped config has DiscordChatChannelRequireLinkedAccount set to false [7]. /discord link is the plugin's linking command [11], and the role-sync code expects the account link manager to be running [10]; the Sync Setup page does not say whether linking is strictly required, so test it [3].

Does it run on Minecraft 26.3?

Modrinth tags version 1.30.5 with 26.3 and the Paper and Folia loaders [6], and the release notes mention an NMS fix for 26.x [5]. We have not run it on a 26.3 server, so test on a throwaway server first.

Sources

  1. DiscordSRV docs: Initial Setup (last updated Aug 3, 2025)
  2. DiscordSRV docs: landing page
  3. DiscordSRV docs: Sync Setup
  4. DiscordSRV docs: Ascension (v3) landing page
  5. DiscordSRV v1.30.5 release notes (GitHub)
  6. DiscordSRV on Modrinth: version list (API)
  7. DiscordSRV v1.30.5: default config.yml (English)
  8. DiscordSRV v1.30.5: DiscordSRV.java
  9. DiscordSRV v1.30.5: DiscordDisconnectListener.java
  10. DiscordSRV v1.30.5: GroupSynchronizationManager.java
  11. DiscordSRV v1.30.5: plugin.yml
  12. Discord developer docs: Gateway (privileged intents)
  13. Discord developer docs: Getting started (Bot page, Reset Token)