Skip to content

Creating a discord bot

  1. Open the Discord developer portal and log in with your discord account.

  2. Click on the New Application button.

  3. Give your bot a name and proceed by clicking the Create button.

  4. You can edit your application’s name, avatar and description in the General Information tab.

  5. Open the Bot tab, click on the Add Bot button and confirm by clicking Yes, do it!

  6. You can edit your bot’s username, icon and banner in the Bot tab.

  7. Scroll down in the Bot tab and enable all 3 intents then click on Save Changes

  8. You can get the Client ID from the General Information tab and the bot Token from the Bot tab to paste them later in your .env file.

  9. To invite the bot to your discord server, head over to the OAuth2 tab, scroll down and click on both the bot and applications.commands scope.
    Click on the Administrator permission and your bot invite link will be generated which can be copied via the Copy button.
    Bot Invite Link Generation