[MIRROR] Ports Nebula's Discord Webhook Integration

This commit is contained in:
Chompstation Bot
2021-05-27 16:35:07 +00:00
parent bbafe17f3b
commit 34143b83cf
27 changed files with 2800 additions and 14 deletions

View File

@@ -0,0 +1,13 @@
/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