DM RELAY
DM RELAY Troubleshooting
Diagnose missing variables, owner IDs, MySQL, DMs, commands, attachments, and logging.
Common problems#
| Problem | How to fix |
|---|---|
| DISCORD_BOT_TOKEN is missing | Create .env in the same directory as bot.py, use the exact variable name, enter the reset token privately, and restart. |
| OWNER_ID is invalid | Enter the numeric user ID copied with Developer Mode, without <@>, spaces, or a username. |
| MySQL connection fails | Split JDBC values, check host/port/name/user/password, and allow remote access. |
| Owner receives no DMs | Confirm OWNER_ID, owner privacy settings, bot login, and console errors. |
| Bot cannot DM a user | The user may block the bot or disable shared-server DMs; the bot cannot bypass Discord privacy controls. |
| Slash commands missing | Invite with applications.commands and confirm command sync. |
| Attachments do not forward | Check Discord file limits, source availability, and Attach Files permission where a server channel is used. |
| Disable log channel | Set LOG_CHANNEL_ID=0 and restart. |