Guild class

Constructors

Guild({required String id, required String name, String? icon, String? iconHash, String? splash, String? discoverySplash, bool? owner, required String ownerId, String? permissions, required String region, String? afkChannelId, required int afkTimeout, bool? widgetEnabled, required int verificationLevel, required int defaultMessageNotifications, required int explicitContentFilter, required List<Role> roles, required List<Emoji> emojis, required List<GuildFeature> features, required int mfaLevel, String? applicationId, required String systemChannelId, required int systemChannelFlags, String? rulesChannelId, String? joinedAt, bool? large, bool? unavailable, int? memberCount, List<VoiceState>? voiceStates, List<Member>? members, List<Channel>? channels, List<PresenceUpdate>? presences, int? maxPresences, int? maxMembers, String? vanityUrlCode, String? description, String? banner, required int premiumTier, int? premiumSubscriptionCount, required String preferredLocale, String? publicUpdatesChannelId, int? maxVideoChannelUsers, int? approximateMemberCount, int? approximatePresenceCount, WelcomeScreen? welcomeScreen})

Properties

afkChannelId String?
final
afkTimeout int
final
applicationId String?
final
approximateMemberCount int?
final
approximatePresenceCount int?
final
final
channels List<Channel>?
final
defaultMessageNotifications int
final
description String?
final
discoverySplash String?
final
emojis List<Emoji>
final
explicitContentFilter int
final
features List<GuildFeature>
final
hashCode int
The hash code for this object.
no setterinherited
icon String?
final
iconHash String?
final
id String
final
joinedAt String?
final
large bool?
final
maxMembers int?
final
maxPresences int?
final
maxVideoChannelUsers int?
final
memberCount int?
final
members List<Member>?
final
mfaLevel int
final
name String
final
owner bool?
final
ownerId String
final
permissions String?
final
preferredLocale String
final
premiumSubscriptionCount int?
final
premiumTier int
final
presences List<PresenceUpdate>?
final
publicUpdatesChannelId String?
final
region String
final
roles List<Role>
final
rulesChannelId String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splash String?
final
systemChannelFlags int
final
systemChannelId String
final
unavailable bool?
final
vanityUrlCode String?
final
verificationLevel int
final
voiceStates List<VoiceState>?
final
welcomeScreen WelcomeScreen?
final
widgetEnabled bool?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map
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) Guild