Difference between revisions of "Discord/API"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
m (Woozle moved page Discord to Discord/API without leaving a redirect: most of what I had written is about interfacing with the API)
Line 8: Line 8:
 
===Official===
 
===Official===
 
* [https://discordapp.com/developers/docs/intro Developer Documentation]
 
* [https://discordapp.com/developers/docs/intro Developer Documentation]
 +
===General Wrapper===
 +
* [https://discordphp.readme.io/docs DiscordPHP]
 
===Logging===
 
===Logging===
 
* [https://github.com/Martacus/LoggerBot LoggerBot] -- or should it be [https://github.com/Martacus/DiscordBot DiscordBot]?
 
* [https://github.com/Martacus/LoggerBot LoggerBot] -- or should it be [https://github.com/Martacus/DiscordBot DiscordBot]?

Revision as of 23:01, 20 July 2018

This page is a seed article. You can help HTYP water it: make a request to expand a given page and/or donate to help give us more writing-hours!

API / Bots

Basic setup: the Developer Documentation includes controls for managing bots. Under Applications -> Authorized Apps you add an application, then add a user for that application. (It will say this is "irrevocable"; I'm not sure what this means, but it may mean that the user will exist forever and you can't delete it, or it may just mean that the user will always be tied to the application for as long as the application still exists. It looks like you can delete the application and start over if you want.) The "bot token" you will need for running the app is on the application properties page, under app bot user -> token.

What the API calls a "guild" is the same thing as a "server".

Next, you have to authorize the bot to join one or more servers (guilds) by opening a URL based on this one: https://discordapp.com/oauth2/authorize?&client_id=YOUR_CLIENT_ID_HERE&scope=bot&permissions=0 This will let you add the bot to any servers where you have sufficient privileges.

Official

General Wrapper

Logging

Archiving