Our main goal of this tutorial is to pull a Discord server’s events, display their details, and attach an invite link to join the server.
So first on our list to accomplish, is creating our discord bot and inviting it to our server. With this, we get access to a bot token, which will allow us the authorization needed to make requests about our server.
Create an application in the developer portal
Fill in the basic details
Add a bot user connected to the application (take the client id)
Turn off the PUBLIC BOT switch (take the bot token)
Add the bot to your server
https://discordapp.com/api/oauth2/authorize?scope=bot&client_id=XXX