Skip to main content
On your own instance the Discord application is yours: create it, give it a bot, then put the client id, secret and bot token in your environment.
1

Create a Discord Application

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

Add an App Icon

App Icon
Upload the App Icon of your choice (1024x1024px max) and save your changes. If you do not do this, you will get 404 errors in logs when trying to add the Discord channel in the PostQueen web interface.
3

Get and set your Client ID and Client Secret

You can find this in the OAuth2 section of the Discord Developer Portal.
Copy Keys
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
You can find this in the OAuth2 section of the Discord Developer Portal.
Redirect URI
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