1. Create A Discord Bot

How to Create a Discord Bot.

  1. Go to https://discordapp.com/developers and press New Application.

  2. Give the application a name and press create. You can give the bot an avatar now if you want.

  3. Go to the Bot tab and click add bot. Click yes when promoted.

  4. In the bot tab, you will need to enable both Privileged Gateway Intents, you can find a guide on how to do this here.

  5. Go to the OAuth2 to get an invite link. From the list of Scopes click Bot and click Administrator from the list of Bot Permissions.

  6. Copy the link and paste it into the URL bar. Select the server you want to add the bot to and click authorize.

  7. Check that the bot has been added to the correct server.

Ensure you follow step 4, where you must enable privileged gateway intents!