EmbedBuilder class

Constructors

EmbedBuilder({String? title, String? description, String? url, DateTime? timestamp, Footer? footer, Image? image, Thumbnail? thumbnail, Author? author, List<Field>? fields, Color? color})
EmbedBuilder.fromGuildPreview(GuildPreview preview)
factory

Properties

author Author?
getter/setter pair
color Color?
getter/setter pair
description String?
getter/setter pair
fields List<Field>?
getter/setter pair
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
image Image?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnail Thumbnail?
getter/setter pair
timestamp DateTime?
getter/setter pair
title String?
getter/setter pair
url String?
getter/setter pair

Methods

addField({required String name, required String value, bool? inline}) EmbedBuilder
Add an field into fields and return this
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAuthor({required String name, String? url, String? iconUrl, String? proxyIconUrl}) EmbedBuilder
Set the author field and return this
setColor(Color color) EmbedBuilder
Set the color field and return this
setDescription(String value) EmbedBuilder
Set the description field and return this
setFooter({required String text, String? iconUrl, String? proxyIconUrl}) EmbedBuilder
Set the footer field and return this
setImage({required String url, String? proxyUrl, int? width, int? height}) EmbedBuilder
Set the image field and return this
setThumbnail({required String url, String? proxyUrl, int? width, int? height}) EmbedBuilder
Set the thumbnail field and return this
setTimestamp({DateTime? dateTime}) EmbedBuilder
Set the timestamp field and return this
setTitle(String value) EmbedBuilder
Set the title field and return this
setUrl(String url) EmbedBuilder
Set the url field and return this
toJson() Object
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited