Reference
Discord webhooks
uniqers-bunkerPage 22 of 270 topicsUpdated recently
Webhooks live in config/webhooks.lua, which only the server loads: the URLs are never sent to players.
lua
ServerConfig.Discord = { enabled = true, default = '', -- used by every category without a URL of its own botName = 'Uniqers Bunker', avatar = '', showIdentifiers = true, -- license / Discord / character id of the player categories = { bunker = '', -- bunker bought / sold purchase = '', -- licence, stations, upgrades, guards, van, batteries, extra lines, machines production = false, -- production started / collected (busy) stock = '', -- stock taken, sell missions tax = '', -- tax paid, production blocked, bunker taken back robbery = '', -- robberies (start / result / loot) laundry = '', -- laundering (load / collect) permissions = '', -- access given / changed / removed admin = '', -- admin panel actions },}For every category: '' uses default, a URL sends it to that channel, false turns it off.
Messages are queued and sent in batches of up to 10, so busy servers do not hit Discord's rate limit.
To get a URL: Discord β Channel settings β Integrations β Webhooks β New Webhook β Copy Webhook URL.
Caution
Never put a webhook URL in config/config.lua: that file is sent to every player.
Still stuck? Send us your server log on Discord and we will sort it out with you.
Ask on Discord