Embed Management ✏️
The Dungeon Hub Bot contains an advanced feature to read message data from embeds, send new embeds and also edit them afterward. This feature fully supports adding multiple embeds onto one message, which is supported by discord. This feature is mainly enabled through the command /embed.
Embed Format
Most sub-commands of /embed expect the embed-data to be passed as a json-string. This can either contain one object, or a json array of multiple objects. You can get an example of the format that is used by running the command /embed get ✏️ and supplying the message link of a message with an embed.
The format that is expected in those arguments looks like this:
URL format
Some fields in the embed can contain a URL. This URL is often a link to an image that should be used, but it can reference any possible url. These fields are checked before the embed is sent, and if any of the URLs are not valid, an error will be shown. The URL must contain a valid protocol, meaning it must start with e.g. http://
or https://
.
Message Link
The message link is a link to a message in discord, which can be obtained by right-clicking on a message and selecting Copy Message Link
. This link is used to identify the message that should be edited or read from.
Timestamp
The timestamp
field is a unix timestamp in milliseconds. This is used to display a timestamp in the embed.
You can convert a date to a timestamp and vice versa by using websites like this.
Please make sure that the timestamp is in milliseconds, as the bot will not convert it for you, resulting in incorrect dates being shown.
Color
The color
field is a hex color code, with a leading #
. This color is used to color the left bar of the embed.
You can use websites like this or this to find a color you like.