How To Use Discord Api
All enumerations are subclasses of an internal class which mimics the behaviour of enum enum.
How to use discord api. In these examples we are going to be using node fetch which is a great library for making http requests. Text a text channel. In this tutorial i ll show you how to connect the discord api to google sheets in 7 steps. Your application s client secret. Using a bot token gained by registering a bot for more information on bots see bots vs user accounts.
Discord is a popular chat app much like slack. Making an app on discord opens up many possibilities for deeper integrations with your other services and platforms. Your url redirect uri. Install the apipheny add on. Then give your app some name and set the redirect uri.
Print server count posted successfully def setup bot. To install node fetch run the following command. Voice a voice channel. Create a discord app. Obtain a bearer access token.
The api provides some enumerations for certain types of strings to avoid the api from being stringly typed in case the strings change in the future. The discord api version to use. Handles interactions with the top gg api def init self bot. Authenticating with the discord api can be done in one of two ways. Making http requests with node.
Class discord channeltype specifies the type of channel. The discord app is created on the discord website. These pages are dedicated to showing you all the ways that you can use discord to make cool stuff. Using an oauth2 bearer token gained through the oauth2 api. You ve found the discord developer documentation.