How To Use Discord Api
The discord app is created on the discord website.
How to use discord api. Obtain your discord code. Voice a voice channel. 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. Create a discord app. To install node fetch run the following command.
To learn how to use discord s api to empower your application and create awesome bots for your communities. Import dbl import discord from discord ext import commands class topgg commands cog. So you ve probably used an api yourself. Using a bot token gained by registering a bot for more information on bots see bots vs user accounts. In these examples we are going to be using node fetch which is a great library for making http requests.
Go to discord developers url there create your account. Self bot bot self token dbl token set this to your dbl token self dblpy dbl dblclient self bot self token autopost true autopost will post your guild count every 30 minutes async def on guild post. Your application s client id. Discord is a popular chat app much like slack. Using an oauth2 bearer token gained through the oauth2 api.
Obtain a bearer access token. As a matter of fact discord js is made to use discord s api. Making an app on discord opens up many possibilities for deeper integrations with your other services and platforms. Choose your endpoint url. Print server count posted successfully def setup bot.
Your url redirect uri. These pages are dedicated to showing you all the ways that you can use discord to make cool stuff. How to extract data from discord and import it into google sheets using the discord api. The discord api version to use. All enumerations are subclasses of an internal class which mimics the behaviour of enum enum.