Files
Polaris/code/modules/webhooks/webhook_fax2discord.dm
Neerti 4deffc7186 Ports Nebula's Discord Webhook Integration (#8071)
* Ports Nebula's Discord Webhook Integration

* Forgot the example .json file.
2021-05-12 21:22:25 -09:00

10 lines
231 B
Plaintext

/decl/webhook/fax_sent
id = WEBHOOK_FAX_SENT
/decl/webhook/fax_sent/get_message(var/list/data)
.= ..()
.["embeds"] = list(list(
"title" = "[data["name"]]",
"description" = data["body"],
"color" = COLOR_WEBHOOK_DEFAULT
))