Troubleshooting
First confirm that the server and add-on came from the same release. If you changed .env or config.json, confirm that you restarted discord-mcbe afterward.
The bot does not start
Section titled “The bot does not start”When Invalid environment variables is shown
Section titled “When Invalid environment variables is shown”- Confirm that
.envis next tostart.batorstart.sh. - Check that
DISCORD_TOKEN,GUILD_ID, andCHANNEL_IDare not empty. - Use a numeric ID of roughly 18–20 digits, not a channel name or URL.
- Ports must be positive integers.
When error: An invalid token was provided is shown
Section titled “When error: An invalid token was provided is shown”- Check that the bot token configured in
DISCORD_TOKENis correct. - If this error appears despite setting a token, set a new token from the Discord Developer Portal.
When error: Used disallowed intents is shown
Section titled “When error: Used disallowed intents is shown”Enable Bot > Privileged Gateway Intents > Message Content Intent in the Discord Developer Portal, then restart.
When Error: Failed to find the guild is shown
Section titled “When Error: Failed to find the guild is shown”- Check that the server ID configured in
GUILD_IDis correct. - Check that the bot has joined that server.
When Error: Failed to find the channel is shown
Section titled “When Error: Failed to find the channel is shown”- Check that the channel ID configured in
CHANNEL_IDis correct. - Check that the bot has permission to view that channel.
When Error: The channel (ID: 0000000000) is not a text channel is shown
Section titled “When Error: The channel (ID: 0000000000) is not a text channel is shown”Confirm that the channel configured in CHANNEL_ID is a text channel. Voice channels and threads are not supported.
When Invalid config.json is shown
Section titled “When Invalid config.json is shown”Follow the key path in the error. Common causes are a trailing JSON comma, a missing quote, or 0 where a positive integer is required. If necessary, move the current file aside, let discord-mcbe generate defaults, then reapply only the settings you need.
Slash commands are missing
Section titled “Slash commands are missing”- Restart discord-mcbe and check for errors after
Logged in as .... - Reload the Discord client. (Changes may take some time to appear.)
/command and /panel are visible only to administrators. If /ping and /list are available, registration worked.
Chat relay does not work
Section titled “Chat relay does not work”- Post in the exact channel selected by
CHANNEL_ID. - Grant View Channels, Send Messages, Embed Links, Attach Files, and Read Message History.
- Check whether a
cancelrule inbot.discord_message_filtermatches the message. - Use
/pingto confirm that a world is connected.
Messages authored by bots are intentionally ignored to prevent loops.
Minecraft does not connect
Section titled “Minecraft does not connect”For a regular world
Section titled “For a regular world”- Use the
localpack, not thebdspack. - Activate
discord-mcbe-local-*.mcpackas a behavior pack. - Start the world and discord-mcbe, then run
/connect localhost:3063as the host. - From another device, replace
localhostwith the IP address of the machine running discord-mcbe.
When Required addon not installed is shown
Section titled “When Required addon not installed is shown”The WebSocket is connected, but the add-on is not working correctly. Confirm that the pack and Beta APIs are enabled.
For Bedrock Dedicated Server
Section titled “For Bedrock Dedicated Server”- Use the
bdspack, not thelocalpack. - Confirm that the add-on is listed in a file such as
world_behavior_packs.jsonand is enabled. - Enable Beta APIs too.
- Confirm that
@minecraft/server-netis listed inconfig/default/permissions.json. - Confirm that the discord-mcbe bot is running before starting BDS.
- The BDS add-on reads its connection settings from
config/195cf53c-ae53-4437-82d9-a84e08694ffc/variables.jsonin the BDS installation folder. Create or edit this file and restart BDS. - Set
BRIDGE_URLto the discord-mcbe WebSocket URL seen from BDS. Its port must matchBRIDGE_PORTin the server’s.env.
If you still cannot solve the problem
Section titled “If you still cannot solve the problem”Ask in the Discord community. Including the following information will help:
- Minecraft version
- discord-mcbe version for both the bot and add-on
- Environment:
- Regular world or BDS
- OS and version of the PC running the bot
- For bugs: brief reproduction steps