Go to https://discordapp.com/developers and press
Give the application a name and press create. You can give the bot an avatar now if you want.
Go to the Bot tab and click add bot. Click
yes when promoted.
In the bot tab, you will need to enable both Privileged Gateway Intents, you can find a guide on how to do this here.
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.
Copy the link and paste it into the URL bar. Select the server you want to add the bot to and click
Check that the bot has been added to the correct server.