Connect Project Zomboid to Discord: Your Server Chat in a Channel
Project Zomboid comes with a built-in bridge to Discord: whatever is typed in the game's global chat shows up in a channel on your Discord, and whatever is typed there reaches the game. That way the group knows who's playing without opening it, and anyone at work can reply from their phone. You don't need a mod or a separately hosted bot: the server itself acts as the bot. What has changed is how it's set up: in Build 42 the settings aren't the ones from Build 41, and almost every guide out there still uses the old ones.
What it does and what it doesn't
The bridge links the game's global chat (the /all one) with a Discord text channel, in both directions. It doesn't link group, faction or private chats, or voice chat.
If global chat is turned off on your server (GlobalChat=false, “Global chat” in the settings), there's nothing to send to Discord: check that first.
The server has to be running for the bridge to work: with the server stopped, the bot shows as offline in Discord and anything typed there goes nowhere.
Rather not set it up yourself? Project Zomboid servers from €12 a month, no contract and a full refund within 72 hours. Or create a free Project Zomboid server, no card needed.
The Build 42 settings (and the ones that no longer exist)
A Build 42 server .ini has five: DiscordEnable (turns it on), DiscordToken (the bot's key), DiscordChatChannel (the chat channel), DiscordLogChannel (the logs channel) and DiscordCommandChannel (the commands channel). According to the game's own help text, the three channel settings take the channel's name.
If a guide tells you to fill in DiscordChannel or DiscordChannelID, it's from Build 41: in Build 42 those lines are no longer in the .ini and writing them does nothing.
DiscordEnable=true
DiscordToken=your-bot-token
DiscordChatChannel=chat-zomboid
DiscordLogChannel=
DiscordCommandChannel=1. Create the bot on Discord
The bot is the account the server uses to talk on Discord. You create it for free, once, from the Discord Developer Portal, with your usual account.
Create an application
Go to discord.com/developers/applications, click “New Application” and give it the name you want the bot to show (your server's name, for example).
Get the token
In the “Bot” tab, click “Reset Token” and copy the one it shows. It's the bot's password: don't paste it in any chat or give it to anyone. If it leaks, click “Reset Token” again and the old one stops working.
Let it read messages
In that same tab, turn on “Message Content Intent” and save. Without it, Discord won't let the bot read what's typed in the channel, and the bridge would only work one way: from the game to Discord.
Invite it to your Discord
In “OAuth2” → “URL Generator”, tick “bot” and, under permissions, “View Channels”, “Send Messages” and “Read Message History”. Open the link it generates at the bottom, pick your Discord server and accept. You need to be able to manage that Discord server to do this.
2. Set up the channels
Create a text channel for the chat with a simple name: letters, numbers and hyphens, no emojis or symbols (for example chat-zomboid). Since the game looks the channel up by name, an odd name, or the same name on two channels, is the easiest way for it not to find it.
Check that the bot can see the channel: if it's private or in a locked category, add the bot (or its role) to the channel's permissions.
The other two are optional. The game describes DiscordLogChannel as the logs channel and DiscordCommandChannel as the commands channel: if you use them, make them channels only admins can see, never a public one. If you don't need them, leave them empty.
3. Put it on the server
It's best done with the server stopped, so nothing overwrites the change. Fill in the settings, save and start it. If it was running, you need to restart it so it reads the new settings.
When it starts, watch the console: the lines that mention Discord tell you whether it connected or why not. Then type something in the game's global chat and see if it shows up in the channel; and the other way round.
If it doesn't work
The bot shows as offline in Discord
The server is stopped, DiscordEnable isn't set to true, the token was copied wrong (check for spaces before or after) or you changed it with the server running and haven't restarted it. If you're unsure about the token, get a new one with “Reset Token” and paste it again.
Game messages show up, but Discord messages don't reach the game
It's almost always “Message Content Intent” being off in the Developer Portal's “Bot” tab. Turn it on, save and restart the server.
Nothing goes either way, but the bot is online
It can't find the channel: check that DiscordChatChannel has the exact name (without the #), that there aren't two channels with that name and that the bot can see the channel and post in it.
It was working and stopped
If someone clicked “Reset Token” in the portal, the server's token is no longer valid: paste the new one. And if you followed a Build 41 guide, remove any DiscordChannel and DiscordChannelID lines you added by hand: in Build 42 they do nothing.
One bot for two servers
Better one per server: with the same token in two places at once, there's no telling which one answers. Creating another bot takes two minutes.
On NapNodes
On a NapNodes Project Zomboid server you don't need to edit the .ini by hand: the panel's “Settings” has every server setting, and the Discord ones are together in the “Discord and RCON” block (or type “discord” in the settings search box). The token goes in a hidden field, like a password. It saves automatically when you change it and, if the server is running, the notice includes a “Restart” button to apply it.
The bridge needs the server running. On plans the server is always on, so the channel works even when nobody is playing; the free server switches off after 20 minutes with nobody on, and the bridge stops with it until someone presses “Start”. Outbound internet from the servers is open for normal things, like talking to Discord.
If you get stuck, write in the panel's “Help” with what the console says on start (without pasting the token).
Frequently asked questions
How do I connect my Project Zomboid server to Discord?
Create a bot in the Discord Developer Portal, copy its token, turn on “Message Content Intent” and invite it to your Discord. Then, in the server's .ini, set DiscordEnable=true, the token in DiscordToken and the channel name in DiscordChatChannel, and restart the server.
Where is DiscordChannelID in Build 42?
It no longer exists: Build 42 replaced DiscordChannel and DiscordChannelID with three settings, DiscordChatChannel, DiscordLogChannel and DiscordCommandChannel. According to the game's help text, they take the channel's name.
Why don't Discord messages reach the game?
Almost always because the bot doesn't have “Message Content Intent” turned on in the “Bot” tab of the Discord Developer Portal: without it, it can't read what's typed. Turn it on and restart the server.
Do I need a mod or a separately hosted bot?
No: the bridge is built into the game and the server itself acts as the bot while it's running. You only have to create the bot account on Discord.
Can faction or private chats be sent to Discord?
Not with the game's bridge: it only links global chat (/all) with a channel.
Shall we set it up for you?
Project Zomboid servers from €12 a month, never oversold: your RAM is yours alone. And if you'd rather start without paying, there's a free Project Zomboid server, no card needed.
Not sure whether your server is online? Check it in a second with the Project Zomboid server status checker: players, version and password, free.
Keep reading
- Can't Connect to Your Project Zomboid Server? Causes and Fixes
Why you can't join a Project Zomboid server (connection timed out, mismatched mods, game version, password) and how to fix it step by step.
- Project Zomboid Admin Commands: The Full List (Build 42)
Project Zomboid admin commands for Build 42, with examples: players, items, teleporting, zombies, weather and the server. Plus how to type them correctly.
- Project Zomboid: How to Raise XP on Your Server, Globally or per Skill
How to raise XP on a Project Zomboid server (Build 42): the global multiplier, per-skill multipliers, what number to use and skill books.