GuildPreview class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

GuildPreview({required String id, required String name, String? icon, String? splash, String? discoverySplash, List<Emoji>? emojis, required List<GuildFeature> features, required int approximateMemberCount, required int approximatePresenceCount, String? description})
Constructor

Properties

approximateMemberCount int
approximate number of members in this guild
final
approximatePresenceCount int
approximate number of online members in this guild
final
description String?
the description for the guild, if the guild is discoverable
final
discoverySplash String?
discovery splash hash
final
emojis List<Emoji>?
custom guild emojis
final
features List<GuildFeature>
enabled guild features
final
hashCode int
The hash code for this object.
no setterinherited
icon String?
icon hash
final
id String
guild id
final
name String
guild name (2-100 characters)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splash String?
splash hash
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

Static Methods

fromJson(Map<String, dynamic> json) GuildPreview
From json