Space Station 13 - Modules - TypesVar Details - Proc Details

Discord Embed

Holder datum for discord embeds

Used in /datum/discord_webhook_payload and serves as a code-first means to add an embed. See https://discord.com/developers/docs/resources/channel#embed-object

Vars

embed_colourColour of the strip on the side of the embed. Must be in hexadecimal WITHOUT leading hash
embed_contentContent of the embed
embed_timestampTimestamp the embed was sent at. Must be in 8601 format. Will be autoset on /New()
embed_titleTitle of the embed
fieldsList of all fields in the embed

Procs

serialize2listEmbed Serializer

Var Details

embed_colour

Colour of the strip on the side of the embed. Must be in hexadecimal WITHOUT leading hash

embed_content

Content of the embed

embed_timestamp

Timestamp the embed was sent at. Must be in 8601 format. Will be autoset on /New()

embed_title

Title of the embed

fields

List of all fields in the embed

Proc Details

serialize2list

Embed Serializer

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