Embed class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

Embed({String? title, EmbedType? type, String? description, String? url, DateTime? timestamp, int? color, EmbedFooter? footer, EmbedImage? image, EmbedThumbnail? thumbnail, EmbedVideo? video, EmbedProvider? provider, EmbedAuthor? author, List<EmbedField>? fields})
Constructor
Embed.fromJson(Map<String, dynamic> json)
From json
factory

Properties

author EmbedAuthor?
author information
final
color int?
color code of the embed
final
description String?
description of embed
final
fields List<EmbedField>?
fields information
final
footer information
final
hashCode int
The hash code for this object.
no setterinherited
image EmbedImage?
image information
final
provider EmbedProvider?
provider information
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnail EmbedThumbnail?
thumbnail information
final
timestamp DateTime?
timestamp of embed content
final
title String?
title of embed
final
type EmbedType?
type of embed (always "rich" for webhook embeds)
final
url String?
url of embed
final
video EmbedVideo?
video information
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
To json
toString() String
A string representation of this object.
inherited

Operators

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