Name | <DiscordEmbedTag.with[<key>].as[<value>]> |
Returns | DiscordEmbedTag |
Description | Returns a copy of this Embed tag, with the specified data key set to the specified value.
The following keys are accepted, with values of the listed type: author_name: ElementTag author_url: ElementTag of a URL (requires author_name set) author_icon_url: ElementTag of a URL (requires author_name set) color: ColorTag description: ElementTag footer: ElementTag footer_icon: ElementTag of a URL (requires footer set) image: ElementTag of a URL thumbnail: ElementTag of a URL timestamp: TimeTag title: ElementTag title_url: ElementTag of a URL (requires title set) fields: generally don't use directly, but can be set to a list of maps wherein each sub-map has keys "title", "value", and "inline" (boolean) For fields, instead prefer DiscordEmbedTag.add_field.value and DiscordEmbedTag.add_inline_field.value. |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/objects/DiscordEmbedTag.java#L247 |