GuildPreview class Null safety

Returns guild even if the user is not in the guild. This endpoint is only for Public guilds.

Inheritance

Properties

approxMemberCount int
Approximate number of members in this guild
late, final
approxOnlineMembers int
Approximate number of online members in this guild
late, final
client INyxx
Reference to client
final
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
description String?
The description for the guild
read / write
discoveryHash String?
Hash of guild discovery image. To get url use discoveryURL
read / write
emojis List<GuildEmoji>
List of guild's emojis
late, final
features Iterable<GuildFeature>
List of guild's features
late, final
hashCode int
The hash code for this object. [...]
read-only, inherited
iconHash String?
Hash of guild icon. To get url use iconURL
read / write
id Snowflake
ID of entity as Snowflake
final, inherited
name String
Guild name
late, final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
splashHash String?
Hash of guild spash image. To get url use splashURL
read / write

Methods

discoveryURL({String format = "webp", int size = 128}) String?
URL to guild's splash. If guild doesn't have splash it returns null.
iconURL({String format = "webp", int size = 128}) String?
The guild's icon, represented as URL. If guild doesn't have icon it returns null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
splashURL({String format = "webp", int size = 128}) String?
URL to guild's splash. If guild doesn't have splash it returns null.
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited