GuildResponse class

Annotations
  • @JsonSerializable.new()

Constructors

GuildResponse({required GuildOperations disabledOperations, required String name, required bool nsfw, required GuildResponseSplashCardAlignmentSplashCardAlignment splashCardAlignment, required String id, required String ownerId, required SystemChannelFlags systemChannelFlags, required int afkTimeout, required List<GuildFeatureSchema> features, required GuildVerificationLevel verificationLevel, required GuildMfaLevel mfaLevel, required NsfwLevel nsfwLevel, required ContentWarningLevel contentWarningLevel, required GuildExplicitContentFilter explicitContentFilter, required DefaultMessageNotifications defaultMessageNotifications, Int32Type? embedSplashHeight, String? icon, SnowflakeType? rulesChannelId, SnowflakeType? afkChannelId, Int32Type? splashWidth, Int32Type? splashHeight, String? banner, String? embedSplash, Int32Type? embedSplashWidth, Int32Type? onlineCount, Int32Type? bannerWidth, String? contentWarningText, String? vanityUrlCode, Int32Type? bannerHeight, SnowflakeType? systemChannelId, DateTime? messageHistoryCutoff, String? permissions, List<GuildRoleResponse>? roles, List<GuildEmojiResponse>? emojis, List<GuildStickerResponse>? stickers, List<ChannelResponse>? channels, Int32Type? memberCount, String? splash})
const
GuildResponse.fromJson(Map<String, Object?> json)
factory

Properties

afkChannelId SnowflakeType?
The ID of the AFK voice channel
final
afkTimeout int
AFK timeout in seconds before moving users to the AFK channel
final
The hash of the guild banner
final
bannerHeight Int32Type?
The height of the guild banner in pixels
final
bannerWidth Int32Type?
The width of the guild banner in pixels
final
channels List<ChannelResponse>?
Channels visible to the requesting user from gateway state
final
contentWarningLevel ContentWarningLevel
Whether the guild displays a content warning before entering
final
contentWarningText String?
Custom guild-wide content warning text; null falls back to a localized default
final
defaultMessageNotifications DefaultMessageNotifications
Default notification level for new members
final
disabledOperations GuildOperations
final
embedSplash String?
The hash of the embedded invite splash
final
embedSplashHeight Int32Type?
The height of the embedded invite splash in pixels
final
embedSplashWidth Int32Type?
The width of the embedded invite splash in pixels
final
emojis List<GuildEmojiResponse>?
Emojis in the guild from gateway state
final
explicitContentFilter GuildExplicitContentFilter
Level of content filtering for explicit media
final
features List<GuildFeatureSchema>
Array of guild feature flags
final
hashCode int
The hash code for this object.
no setterinherited
icon String?
The hash of the guild icon
final
id String
The unique identifier for this guild
final
memberCount Int32Type?
final
messageHistoryCutoff DateTime?
ISO8601 timestamp controlling how far back members without Read Message History can access messages. When null, no historical access is allowed.
final
mfaLevel GuildMfaLevel
Required MFA level for moderation actions
final
name String
The name of the guild
final
nsfw bool
Whether the guild is marked as adult (18+) content
final
nsfwLevel NsfwLevel
The NSFW level of the guild (legacy; derived from nsfw)
final
onlineCount Int32Type?
final
ownerId String
The ID of the guild owner
final
permissions String?
The current user permissions in this guild
final
roles List<GuildRoleResponse>?
Roles in the guild from gateway state
final
rulesChannelId SnowflakeType?
The ID of the rules channel
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splash String?
The hash of the guild splash screen
final
splashCardAlignment GuildResponseSplashCardAlignmentSplashCardAlignment
The alignment of the splash card
final
splashHeight Int32Type?
The height of the guild splash in pixels
final
splashWidth Int32Type?
The width of the guild splash in pixels
final
stickers List<GuildStickerResponse>?
Stickers in the guild from gateway state
final
systemChannelFlags SystemChannelFlags
final
systemChannelId SnowflakeType?
The ID of the channel where system messages are sent
final
vanityUrlCode String?
The vanity URL code for the guild
final
verificationLevel GuildVerificationLevel
Required verification level for members to participate
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

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