How To Use Discord Api
Obtain your discord code.
How to use discord api. Go to discord developers url there create your account. 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. Run the discord api request. To install node fetch run the following command. Next go to my apps area and create a new app.
These pages are dedicated to showing you all the ways that you can use discord to make cool stuff. The discord api version to use. Enter discord api into apipheny. Your application s client secret. Making http requests with node.
Using an oauth2 bearer token gained through the oauth2 api. As a matter of fact discord js is made to use discord s api. All enumerations are subclasses of an internal class which mimics the behaviour of enum enum. Then give your app some name and set the redirect uri. Install the apipheny add on.
Choose your endpoint url. Making an app on discord opens up many possibilities for deeper integrations with your other services and platforms. Your application s client id. To learn how to use discord s api to empower your application and create awesome bots for your communities. You ve found the discord developer documentation.
In these examples we are going to be using node fetch which is a great library for making http requests. Obtain a bearer access token. Discord is a popular chat app much like slack. Handles interactions with the top gg api def init self bot. Authenticating with the discord api can be done in one of two ways.