Creating a discord bot
-
Open the Discord developer portal and log in with your discord account.
-
Click on the
New Application
button. -
Give your bot a name and proceed by clicking the
Create
button. -
You can edit your application’s name, avatar and description in the
General Information
tab. -
Open the
Bot
tab, click on theAdd Bot
button and confirm by clickingYes, do it!
-
You can edit your bot’s username, icon and banner in the
Bot
tab. -
Scroll down in the
Bot
tab and enable all 3 intents then click onSave Changes
Enabling Intents A quick guide to help you enable the intents. -
You can get the
Client ID
from theGeneral Information
tab and the botToken
from theBot
tab to paste them later in your.env
file. -
To invite the bot to your discord server, head over to the
OAuth2
tab, scroll down and click on both thebot
andapplications.commands
scope.
Click on theAdministrator
permission and your bot invite link will be generated which can be copied via theCopy
button.