GuildPreview class

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
read / write, final, late
approxOnlineMembers int
Approximate number of online members in this guild
read / write, final, late
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<Emoji>
List of guild's emojis
read / write, final, late
features Iterable<GuildFeature>
List of guild's features
read / write, final, late
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
read / write, final, late
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
Returns a string representation of this object.
inherited

Operators

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