Ports Nebula's Discord Webhook Integration

This commit is contained in:
Neerti
2021-05-13 02:22:55 -04:00
committed by VirgoBot
parent d9bf9b57d3
commit 54991b3f47
26 changed files with 1376 additions and 4 deletions
@@ -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
))