EmbedBuilder class
Builds up embed object.
Constructors
- EmbedBuilder()
- Creates clean instance EmbedBuilder
Properties
-
Author of embed
getter/setter pair
- color ↔ DiscordColor?
-
Color code of the embed
getter/setter pair
- description ↔ String?
-
Embed description.
getter/setter pair
-
fields
↔ List<
EmbedFieldBuilder> -
Embed custom fields;
latefinal
-
Embed Footer
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageUrl ↔ String?
-
Image Url
getter/setter pair
- length → int
-
Total length of all text fields of embed
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thumbnailUrl ↔ String?
-
Thumbnail Url
getter/setter pair
- timestamp ↔ DateTime?
-
Timestamp of embed content
getter/setter pair
- title ↔ String?
-
Embed title
getter/setter pair
- type ↔ String?
-
Embed type
getter/setter pair
- url ↔ String?
-
Url of Embed
getter/setter pair
Methods
-
addAuthor(
void builder(EmbedAuthorBuilder author)) → void - Adds author to embed.
-
addField(
{dynamic name, dynamic content, bool inline = false, dynamic builder(EmbedFieldBuilder field)?, EmbedFieldBuilder? field}) → void -
Adds field to embed.
name
andcontent
fields are required. Inline is set to false by default. - Adds footer to embed
-
build(
) → RawApiMap -
Builds object to Map() instance;
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replaceField(
{dynamic name, dynamic content, bool inline = false, dynamic builder(EmbedFieldBuilder field)?, EmbedFieldBuilder? field}) → void -
Replaces field where
name
witch provided new field. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited