How To Use Discord Api
Making an app on discord opens up many possibilities for deeper integrations with your other services and platforms.
How to use discord api. Then give your app some name and set the redirect uri. Whether you re looking to create awesome bots for your community empower your applications with our api or hook us right into your game with rich presence or the gamesdk discord has something for you. The discord api version to use. To install node fetch run the following command. Your url redirect uri.
In this tutorial i ll show you how to connect the discord api to google sheets in 7 steps. 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. Class discord channeltype specifies the type of channel. Your application s client secret. Obtain a bearer access token.
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. Using an oauth2 bearer token gained through the oauth2 api. These pages are dedicated to showing you all the ways that you can use discord to make cool stuff. You ve found the discord developer documentation. Authenticating with the discord api can be done in one of two ways.
Install the apipheny add on. Using a bot token gained by registering a bot for more information on bots see bots vs user accounts. Print server count posted successfully def setup bot. How to extract data from discord and import it into google sheets using the discord api. All enumerations are subclasses of an internal class which mimics the behaviour of enum enum.
So you ve probably used an api yourself. Import dbl import discord from discord ext import commands class topgg commands cog. Create a discord app. To learn how to use discord s api to empower your application and create awesome bots for your communities. Making http requests with node.