Files
CHOMPStation2/code/modules/webhooks/webhook_ahelp2discord.dm
CHOMPStation2StaffMirrorBot 65f21fb1d3 [MIRROR] end of file Fix (#10355)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-03-11 17:58:14 +01:00

14 lines
364 B
Plaintext

/decl/webhook/ahelp_sent
id = WEBHOOK_AHELP_SENT
/decl/webhook/ahelp_sent/get_message(var/list/data)
.= ..()
.["embeds"] = list(list(
"title" = "[data["name"]]",
"description" = data["body"],
"color" = data["color"] || COLOR_WEBHOOK_DEFAULT
))
/decl/webhook/ahelp_sent/get_mentions()
. = !length(GLOB.admins) && ..() // VOREStation Edit - GLOB admins