DiscordGuildPreview class
Constructors
-
DiscordGuildPreview({required DiscordSnowflake id, required String name, String? icon, String? splash, String? discoverySplash, required List<
DiscordEmoji> emojis, required List<String> features, required int approximateMemberCount, required int approximatePresenceCount, String? description, required List<DiscordSticker> stickers}) -
DiscordGuildPreview.fromJson(Map<
String, dynamic> json) -
factory
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<
DiscordEmoji> -
custom guild emojis
final
-
features
→ List<
String> -
enabled guild features
final
-
featuresAsEnum
→ List<
DiscordGuildFeature> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → String?
-
icon hash
final
- id → DiscordSnowflake
-
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
-
stickers
→ List<
DiscordSticker> -
custom guild stickers
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
- approximateMemberCountEntry → const String
- approximatePresenceCountEntry → const String
- descriptionEntry → const String
- discoverySplashEntry → const String
- emojisEntry → const String
- featuresEntry → const String
- iconEntry → const String
- idEntry → const String
- nameEntry → const String
- splashEntry → const String
- stickersEntry → const String