· 6 years ago · Feb 17, 2020, 07:22 PM
1Getting your API Key
2An API key is used to authenticate requests made to and from Discord.
3
4Note: DO NOT SHARE YOUR API KEY! Sharing your key may result in punishments from Discord (including a platform-wide ban) if the token is used to abuse the API.
5
6Obtaining an API Key:
7
8Visit the official Discord Developers page here: Discord Developer Documenation
9Click "New App".
10Name your app and click create! Note: A description isn't required.
11You will now be redirected to your created app, at the point you will need to click "Create a Bot User".
12Under the newly created bot section, under "Username" you will see "Token". Reveal the token and copy it into your plugin.
13Now it's time to add your new bot to your guild! To add your bot to your guild you must visit the following link, and replace "botUserID" with the client ID found at the top of your Discord app settings page:https://discordapp.com/oauth2/authorize?client_id=botUserID&scope=bot&permissions=8