Space Station 13 - Modules - TypesVar Details - Proc Details

Discord Webhook Payload

Holder datum for discord webhook POST send data

Holds all information that a webhook would need, as well as a method to serialize the entire thing into JSON. See https://discord.com/developers/docs/resources/webhook#execute-webhook-jsonform-params

Vars

embedsList of all embed objects in the message
webhook_contentContent of the webhook message
webhook_nameName the webhook user should post as

Procs

serialize2jsonWebhook Serializer

Var Details

embeds

List of all embed objects in the message

webhook_content

Content of the webhook message

webhook_name

Name the webhook user should post as

Proc Details

serialize2json

Webhook Serializer

Converts the DM webhook object into JSON for a POST request. Not called serialize() because thats a proc at the /datum level already