Additional Setup ‐ Discord Integration - MarechJ/hll_rcon_tool GitHub Wiki
🧭 You are here : Wiki home / Additional Setup / Discord Integration
- General useguides for webhooks
- Create a webhook
- Find user/role IDs
- How to enter user/role IDs in the CODE view
Webhooks are unique links having all permissions on a Discord channel.
Caution
Never share a complete webhook on a public forum or with a person you do not fully trust,
as, having it, anybody can post anything in your Discord channel.
If you want to transmit settings containing a webhook, you should redact it before doing so.
Warning
Discord enforces some rules about the number or data volume the webhooks can use.
We don't know the numbers for sure, but having all the CRCON webhook features enabled on a crowded server can trigger Discord's rate limitation process.
Your webhooks will stop functioning without any prior alert or notification.
The only way to confirm you're actually limited by Discord is to look into log_even_loop_1.log
,
where you'll see this error message repeated for each webhook sending command :
429 Too Many Requests (error code: 0): You are being blocked from accessing our API temporarily
due to exceeding our rate limits frequently.
Please read our docs at https://discord.com/developers/docs/topics/rate-limits
to prevent this moving forward.
If you've been rate limited (or if you do not want to be), you have to disable some webhooks.
Keep in mind some are more useful than others, and some are way more spammy than others, too.
Here are the ones you want to keep | These ones are secondary | These are only useful for debugging purposes |
---|---|---|
● Audit ● Admin ping ● Watchlist ● Seeder VIP Reward |
● Camera ● Chat (spammy) ● Kill/TK (spammy) ● Log Line (can be spammy) ● Scorebot (read this) |
● (automod) Level (spammy) ● (automod) No Leader (spammy) ● (automod) Seeding (spammy) ● (automod) No Solo Tank (spammy) ● TK Ban On Connect ● Name Kicks ● Expired VIP |
New_channel_new_webhook.mp4
- Enable Developer Mode in Discord User Settings.
- Right-click on username and copy the ID.
- Click on username, then right-click on any role and copy the ID.
Additional.Setup_Discord_Integration_roles.mp4
Some CRCON webhook features allow to ping Discord users and/or roles while sending the message.
This is really useful if, for example, you want your admins to get a Discord notification when a player enters a trigger word (ie "@admin") in games's chat.
The syntax to enter them in CRCON's settings pages is a bit tricky.
Here's an example for the Admin Ping Webhook that could apply elsewhere.
Have a close look at the characters around the IDs :
- the users IDs are embraced by these
<@ ... >
- the roles IDs are embraced by these
<@& ... >
{
"hooks": [
{
"url": "https://discord.com/api/webhooks/1115332123456354152/g-AS123456XLpy8Yr22HdkEMLwwwgip6A0GnbudDmPuXq2gdJHYgiwX1qATOxO9c37QW",
"user_mentions": [
"<@178752621234569456>",
"<@178712345690123456>"
],
"role_mentions": [
"<@&1115312345699013918>",
"<@&1115312345612345618>"
]
}
],
"trigger_words": [
"@admin",
"!admin"
]
}