DiscordEmbed class

Constructors

DiscordEmbed({String? title, String? type, String? description, String? url, String? timestamp, int? color, DiscordEmbedFooter? footer, DiscordEmbedImage? image, DiscordEmbedThumbnail? thumbnail, DiscordEmbedVideo? video, DiscordEmbedProvider? provider, DiscordEmbedAuthor? author, List<DiscordEmbedField>? fields})
DiscordEmbed.fromJson(Map<String, dynamic> json)
factory

Properties

author DiscordEmbedAuthor?
author information
final
color int?
color code of the embed
final
description String?
description of embed
final
fields List<DiscordEmbedField>?
fields information
final
footer information
final
hashCode int
The hash code for this object.
no setterinherited
image DiscordEmbedImage?
image information
final
provider DiscordEmbedProvider?
provider information
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnail DiscordEmbedThumbnail?
thumbnail information
final
timestamp String?
timestamp of embed content
final
timestampAsDateTime DateTime?
no setter
title String?
title of embed
final
type String?
type of embed (always "rich" for webhook embeds)
final
url String?
url of embed
final
video DiscordEmbedVideo?
video information
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

authorEntry → const String
colorEntry → const String
descriptionEntry → const String
fieldsEntry → const String
footerEntry → const String
imageEntry → const String
providerEntry → const String
thumbnailEntry → const String
timestampEntry → const String
titleEntry → const String
typeEntry → const String
urlEntry → const String
videoEntry → const String