1
Create a Discord Application
Login to Discord on the web, and then go to the Discord Developer Portal and click on “New Application”.

2
Add an App Icon

3
Get and set your Client ID and Client Secret
You can find this in the OAuth2 section of the Discord Developer Portal.
The authorization screen asks for three things:

identify, guilds and bot. The first two
are verified on connect and refused if missing. bot is what installs the application into
your server, which is why the consent screen shows a server picker.Set these in your .env file as follows;4
Add a Redirect URI
Your Discord OAuth2 Redirect URI:
- Production:
https://postqueen.example.com/integrations/social/discord - Local development:
http://localhost:4200/integrations/social/discord - Docker:
http://localhost:4007/integrations/social/discord

5
Create a Bot
Navigate to the “Bot” section of the Discord Developer Portal. Fill out the bot details however you like, and then click “Reset Token”.With the token that is generated, set it in your .env file as follows;If you do not set this, you will get 404 errors when trying to add the Discord channel in the PostQueen web interface.Stop PostQueen if it is running, and then start it using the .env file with the Discord details.
6
Add a Discord channel in the PostQueen web interface
Go to the PostQueen web interface, and click on the “Add Channel” button, and then select “Discord”. You should be redirected to Discord to login.
The channel is in the left sidebar with its avatar and name. That is the whole confirmation: if it is in the list, she can post to it.
Next steps
What she can post to Discord
Limits, post types and settings
Configuration reference
Every variable she reads
Connect errors
Invalid state, invalid_grant and the rest
Another channel
Every network, and what each one asks for