mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
12 lines
353 B
Plaintext
12 lines
353 B
Plaintext
/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
|
|
))
|