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.

  1. Create an application in the developer portal

    Untitled

  2. Fill in the basic details

  3. Add a bot user connected to the application (take the client id)

  4. Turn off the PUBLIC BOT switch (take the bot token)

  5. Add the bot to your server

    https://discordapp.com/api/oauth2/authorize?scope=bot&client_id=XXX