Creating a Discord app
Before you even begin to host the bot itself, you need to make an app on the Discord Developer Portal. This is what you actually invite to your Discord server.
-
Go to the Discord Developer Portal and sign in.
-
Click 'New Application' in the top right and give it a name before agreeing to the Discord Developer ToS and clicking 'Create' in the window that appears.

-
You're now on your bot's application page. On the 'General Information' page, set an app icon, name (this is what appears as the bot's display name in Discord), description (the bot user's bio in Discord) and app icon.

-
Click 'Bot' in the sidebar, and click the purple 'Reset Token' button. It will get you to authenticate if you have multi-factor authentication enabled, so do this. Copy the token and save it somewhere safe, as you cannot see this token again without generating a new one.

-
Scroll down and turn on all the switches under 'Privileged Gateway Intents' and save.

-
Click 'OAuth2' in the sidebar and go to the 'OAuth2 URL Generator' section. From here:
- Tick the
botbox. - Scroll down and click 'Administrator' under 'General Permissions' (1).
- Change 'Integration Type' to 'Guild Install' in the drop down list.
- Copy the URL under 'Generated URL', visit it, and invite the bot to the server you need it in.
- Tick the
Congratulations, you have invited the bot to your server and can move on to hosting it!