WardenCoredocs
Discord Bot

Creating a Discord Bot

Step-by-step guide to create a bot in Discord Developer Portal

Before you can connect WardenCore to Discord, you need to create a bot application in the Discord Developer Portal. This page walks you through every step.

Create the Application

Create a new application

Click New Application in the top-right corner. Give it a name (for example, "WardenCore Bot") and click Create.

Go to the Bot tab

In the left sidebar, click Bot. This is where you configure the bot user attached to your application.

Get your bot token

Click Reset Token, then confirm. Discord will display your bot token -- copy it immediately and store it somewhere safe. You will not be able to see this token again after you leave the page.

Never share your bot token

Anyone with your bot token can fully control your bot -- read messages, send messages, and interact with your server. Treat it like a password. If you accidentally leak it, return to this page and click Reset Token to generate a new one.

Enable Privileged Gateway Intents

Scroll down to the Privileged Gateway Intents section. Enable all three toggles:

  • Presence Intent -- allows the bot to see who is online
  • Server Members Intent -- allows the bot to access the member list and roles
  • Message Content Intent -- allows the bot to read message text (required for commands)

Click Save Changes at the bottom.

Open the URL Generator

In the left sidebar, go to OAuth2 then click URL Generator.

Select scopes

Under Scopes, check these two boxes:

  • bot
  • applications.commands

Select bot permissions

A Bot Permissions section appears below. Check Administrator — this gives the bot all permissions it needs.

This is your own bot that you create and control. The WardenCore team has no access to it. The bot runs entirely on your server.

Copy the invite URL

Scroll to the bottom of the page. Discord has generated an invite URL. Click Copy to copy it to your clipboard.

Invite the bot to your server

Open the copied URL in your browser. Discord will ask you to select a server -- choose the Discord server you want the bot to join. Click Authorize and complete the captcha if prompted.

Verify the bot appeared

Go to your Discord server. You should see the bot in the member list on the right side. It will show as offline -- this is expected. The bot will come online once you configure its token in the WardenCore panel (covered in the next page).

Common Issues

Bot shows as offline

This is normal at this stage. The bot will not come online until you paste the token into the WardenCore panel and save the settings. See Bot Setup for the next steps.

Missing Permissions errors

If the bot later reports permission errors, you need to re-invite it with the correct permissions. Go back to steps 7--10 above, make sure all required permissions are checked, and use the newly generated URL to re-authorize the bot in your server.

Cannot enable intents

Only the owner of the bot application can toggle Privileged Gateway Intents. If someone else created the application, ask them to enable the intents or transfer ownership to you.

On this page