Discord Integration
How to configure the UltraStaffChatPro Discord integration on your Minecraft server.
UltraStaffChatPro's Discord integration supports using a Discord Bot or a Discord Webhook. There are benefits and restrictions to each integration, however, we recommend the Discord Bot integration as it allows for two-way communication between Discord and your Minecraft server.
General configuration
You can customise how the {player}
and {server}
placeholders are replaced for messages sent from Discord. You can also change the "allowed mentions" for messages sent to Discord to prevent players in Minecraft from using "@everyone" or similar.
Discord Bot
The Discord Bot integration allows two-way communication between staff members on your Minecraft server and in your Discord server. To set up the Discord Bot integration, you must create a Discord application and provide UltraStaffChatPro with the Bot token for your application.
1. Create Discord application
Start by creating a Discord application in the Discord Developer Portal. This application will be used by the Discord integration to connect to Discord. You can skip this step if you have already created an application you wish to use.
Open the Discord Developer Portal and log in to your Discord account.
Click on the "New Application" button at the top-right of the page.
Enter a name for your application and click "Create".
You should see a page similar to this image:
2. Reset bot token
Do not share the bot token with anyone, including Hypera staff members.
Anyone with access to the bot token can authenticate with Discord as the bot, granting them access to any Discord server the bot is in.
Hypera staff members will never ask you for your bot token.
When providing your config.yml
file in support tickets, we highly recommend redacting or removing the token.
After creating the Discord application, reset the Bot's token by following these steps:
Navigate to the application page in the Discord Developer Portal.
Click on "Bot" in the sidebar to view the bot settings.
Click "Reset Token" and then "Confirm" in the modal. You may have to re-authenticate with Discord to reset the token.
Click the "Copy" button to copy the generated token, then save it securely for later. The token can only be viewed once after being created. If you forget or lose access to the token, you must generate a new one.
What is a token?
A Discord token is similar to a password your Bot uses to authenticate with the Discord API and gateway. This allows the bot access to any Discord servers the bot is in, allowing messages to be sent and received by the bot.
3. Privileged Gateway Intents
This step is required for the Discord Bot integration to work correctly. Without the message content intent, the Discord bot will be unable to read the contents of messages sent on Discord, resulting in blank messages appearing in the staff-chat channels.
Once you have created a Discord application and reset the bot token, scroll down on the "Bot" page for your Discord application and enable the "Message Content Intent". This privileged gateway intent allows your Discord bot to receive the content of messages sent on Discord. Without this intent, the Discord bot will see empty messages.
Click "Save Changes" in the pop-up to save this change.
4. Add the Discord bot to your server
After you have created the Discord application, the Discord bot will not be any servers yet. You must add the Discord bot to your server in order for the Discord Bot integration to work.
You must have the "Manage Server" permission in the Discord server(s) to which you wish to add the bot.
Create an invite link for your Discord bot by following these steps:
Navigate to the application page in the Discord Developer Portal.
Click "OAuth2" in the sidebar and scroll down to the "OAuth2 URL Generator".
Select the
bot
scope under "Scopes".Configure the bot permissions to your needs. It is recommended to restrict the permissions as much as possible, and only give the Discord bot permission to send and receive messages in the channel(s) for which you wish to use the Discord integration.
Select "Guild Install" under "Integration type".
Copy the generated URL and open it in your browser.
Select the server you wish to add the Discord bot to and click "Authorise".
Once you have clicked "Authorise", you should see the bot in your server's member list.
5. Enable and configure the Discord Bot integration
Once you have created a Discord application, reset the bot token and added the Discord bot to your server, you are ready to configure UltraStaffChatPro to use the Discord bot! UltraStaffChatPro must also be provided with the ID of your Discord server and channel(s) from which you would like to send and receive messages. If you have Discord Developer Mode enabled, you can do this by right-clicking the server or channel and clicking "Copy ID".
Start by enabling the Discord integration and setting the Discord integration mode to "BOT" in your
config.yml
file.
Once you have enabled the Discord bot integration, you must provide the token you generated in step 2. If you have forgotten or lost your bot's token, you must reset the token again.
Once you have configured the bot token, configure the Discord server and channel messages in the staff-chat should be sent to, and received from.
You can also customise your bot's status and activity.
You can customise each message sent to Discord in your
messages.yml
file. For each message sent to Discord, there is a separate message configuration where you can fine-tune each message to your liking:
If you use UltraStaffChatPro's "multi-channel" feature, you can enable the Discord integration per channel, and configure each channel to use a different Discord Webhook URL. Multi-channels are configured in the
config.yml
file.config.yml
Discord Webhook
Discord Webhooks only allow one-way communication, by sending messages from Minecraft to Discord. Webhooks are unable to receive messages sent on Discord. If you want two-way communication, you must use the Discord Bot integration.
The Discord Webhook integration allows one-way communication between staff members on your Minecraft and Discord server. Messages can be sent to Discord from Minecraft, but not sent to Minecraft from Discord.
1. Create Discord Webhook
Do not share the Discord Webhook URL with anyone, including Hypera staff members. Anyone with access to the Discord Webhook URL can send messages to the channel.
When providing your config.yml
or messages.yml
file in support tickets, we highly recommend redacting or removing all Discord Webhook URLs.
Start by creating a Discord Webhook for your staff-chat.
In the Discord app, locate the channel that you want messages to, then click the "Edit Channel" gear icon.
Once you have clicked "Edit Channel", click "Integrations" in the sidebar.
On the "Integrations" page, click the "Create Webhook" button to create a new webhook.
Click on the created webhook, and click "Copy Webhook URL" to copy the URL.
Optionally change the name or avatar of the created webhook. This will be overridden by the settings in UltraStaffChatPro, however it is recommended to label the webhook for easy identification later.
2. Enable and configure the Discord Webhook integration
Once you have created a Discord webhook, you can configure UltraStaffChatPro to use the Discord webhook integration!
Start by enabling the Discord integration and setting the Discord integration mode to
WEBHOOK
in yourconfig.yml
file.
Once you have enabled the Discord webhook integration, you must provide a Discord Webhook URL for your staff-chat channel. This webhook URL will be used only for messages sent in the staff-chat, and not multi-channel (see step 5).
You can customise the avatar and username for the Discord Webhook in the configuration file, and use placeholders to change the avatar and username for each player.
You can customise each message sent to Discord in your
messages.yml
file. For each message sent to Discord, there is a separate message configuration where you can fine-tune each message to your liking:
If you use UltraStaffChatPro's "multi-channel" feature, you can enable the Discord integration per channel, and configure each channel to use a different Discord Webhook URL. Multi-channels are configured in the
config.yml
file.
Last updated
Was this helpful?