WardenCoredocs
Discord Bot

Bot Setup

Configure the Discord bot through the WardenCore panel

Once you have created a Discord bot and invited it to your server, the next step is to connect it to WardenCore through the panel.

Configuring the Bot

Go to Settings > Discord in the WardenCore panel. You will see the Discord bot configuration form.

Required Settings

SettingDescription
Bot TokenThe token you copied from the Discord Developer Portal. Paste it here exactly as-is.
Guild IDYour Discord server's ID. See below for how to find it.

Optional Settings

SettingDescriptionDefault
Command PrefixThe character typed before commands. For example, if set to !, commands look like !bank. If set to ?, commands look like ?bank.!
Admin RolesA list of Discord role IDs that are allowed to use admin-only commands. You can add multiple roles.Empty (no admin commands available)
Discord Invite LinkYour Discord server invite link (without https://). Used in welcome pack messages and embed links.Empty

How to Find Your Guild ID

Discord calls servers "guilds" internally. To copy your server's ID:

Enable Developer Mode

Open Discord and go to Settings (the gear icon next to your username). Navigate to App Settings > Advanced and toggle Developer Mode on.

Copy the Server ID

Go back to your server. Right-click the server name at the top of the channel list and select Copy Server ID.

Paste into the panel

Paste the copied ID into the Guild ID field in the WardenCore panel.

Saving and Going Online

After filling in the required settings, click Save. If the token and guild ID are correct, the bot will connect to Discord and appear as online in your server within a few seconds.

Admin Roles

After saving the bot token and guild ID, the Admin Roles field will show a dropdown with all available roles from your Discord server. Select the roles that should have access to admin commands. You can select multiple roles.

Common Issues

Bot still offline after saving

Double-check that the bot token is correct — extra spaces or missing characters are common. If the token looks right, try restarting the game server. Check the Console for error messages related to Discord.

Commands not working

Make sure the prefix you are typing matches the one configured in the panel. If the prefix is set to !, typing ?bank will not work. Also verify the bot has permission to read messages and send messages in the channel you are using.

Admin commands denied

If you get a "This command is admin-only" response, your Discord role ID is not in the Admin Roles list. Copy your role ID using the steps above and add it to the panel settings. Make sure you are copying the role ID, not the user ID.

Bot connects but immediately disconnects

This usually means the Privileged Gateway Intents are not enabled in the Discord Developer Portal. Go back to the Creating a Discord Bot page and verify that all three intents are turned on.

On this page