Step 1: create the Discord bot
In the Discord Developer Portal, create an application, add a bot, and copy its token. Under Privileged Gateway Intents, enable Server Members Intent and Message Content Intent; without them the bot connects but cannot read chat. Invite the bot to your Discord server with permission to read and send messages in the channels it uses.
Step 2: configure the plugin
Install DiscordSRV, start the server once to create plugins/DiscordSRV/config.yml, then stop it. Paste the bot token into BotToken. Turn on Developer Mode in Discord, right-click your chat channel, copy its ID and set it in the Channels setting, for example {"global": "123456789012345678"}.
Step 3: optional extras
- DiscordConsoleChannelId: a private channel that shows the server console; staff only
- Account linking with /discord link, then role syncing with LuckPerms groups
- Custom message formats and embeds in messages.yml
Common problems
If messages go from Minecraft to Discord but not back, the Message Content Intent is off. If the bot never comes online, the token is wrong or was reset. If nothing posts, the channel ID is wrong or the bot cannot see the channel. The console prints a clear DiscordSRV error in each case.
Keep the console channel locked down. Anyone who can type there runs commands as the server.