[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,11 @@
/decl/webhook/custom_event
id = WEBHOOK_CUSTOM_EVENT
// Data expects a "text" field containing the new custom event text.
/decl/webhook/custom_event/get_message(var/list/data)
. = ..()
.["embeds"] = list(list(
"title" = "A custom event is beginning.",
"description" = (data && data["text"]) || "undefined",
"color" = COLOR_WEBHOOK_DEFAULT
))