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. Then click Yes when promoted to do so.
In the Bot Tab, you will need to enable both Privileged Gateway Intents, you can find a guide on how to do so here.
Ensure you follow step 4, where you must enable privileged gateway intent, otherwise your suppose bot won't function correctly.
Privileged Gateway Intents
5. Go to the OAuth2 to get an invite link. From the list of Scopes click Bot and click Administator from the list of Bot Permissions.
6. Copy the link and paste it into your browser of choice. Select the server you want to add the bot to and click authorize.
7. The bot should now have been invited to the server you have selected.