mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 15:38:02 +01:00
Ports Nebula's Discord Webhook Integration
This commit is contained in:
@@ -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
|
||||
))
|
||||
Reference in New Issue
Block a user