The API can be used for anything from serving requests for bots to integrating OAuth. Discord provides an official open API for us to interact with. This token allows us to communicate with the Discord API. Once our server is created, we will add the bot to the server and get the access token from Discord’s developer portal. The reason we need to create a server is that, without admin privileges for a server, we won’t be able to add a bot to the server. A major difference between Slack and Discord is that Slack requires different login credentials to access different servers, whereas in Discord you can access all of the servers that you are part of with a single authentication. A Discord server is like a group in which you can assign various topics to various channels, very similar to a Slack server. We will be building the bot by following a few steps.įirst, we’ll build a Discord server. And if you want to clone and explore the code right away, you can with the GitHub repository. Now that we know the prerequisites and our goal, let’s start. Familiarity with JavaScript is a must for this article. Share tweets from a particular account to a particular channel.īecause the Discord.js module is based on Node.js, I’ll assume that you are somewhat familiar with Node.js and npm.Add and remove user roles by selecting emoji.
0 Comments
Leave a Reply. |