Custom embeds
Help › Custom commands › Custom embeds
Custom embeds
Embeds are the boxed messages with a colored edge, title, and fields. You can make them with a command or inside a custom command.
From a command
-simpleembed (short: -se) builds an embed from switches:
-se -title "Server rules" -desc "Be kind. No spam." -color "#2f7bd8"
Add -channel #announcements to post somewhere else, or -message <ID> to edit one of the bot's earlier embeds. Run -help se to see every option.
-customembed (short: -ce) takes the embed as JSON, if you prefer to write it out in full:
-ce {"title":"Server rules","description":"Be kind. No spam.","color":3111896}
In a custom command
{{ $e := cembed
"title" "Welcome!"
"description" (print "Glad you're here, " .User.Mention)
"color" 3111896
"fields" (cslice (sdict "name" "Rules" "value" "See #rules" "inline" false))
}}
{{ sendMessage nil $e }}
Colors are written as decimal numbers in templates and JSON. For example 3111896 is the blue used on this site.