GuildResponse class

Annotations
  • @JsonSerializable.new()

Constructors

GuildResponse({required ContentWarningLevel contentWarningLevel, required String name, required int afkTimeout, required GuildResponseSplashCardAlignmentSplashCardAlignment splashCardAlignment, required String id, required String ownerId, required GuildOperations disabledOperations, required NsfwLevel nsfwLevel, required GuildMfaLevel mfaLevel, required DefaultMessageNotifications defaultMessageNotifications, required GuildVerificationLevel verificationLevel, required List<GuildFeatureSchema> features, required SystemChannelFlags systemChannelFlags, required GuildExplicitContentFilter explicitContentFilter, required bool nsfw, SnowflakeType? systemChannelId, Int32Type? embedSplashHeight, SnowflakeType? rulesChannelId, SnowflakeType? afkChannelId, String? vanityUrlCode, Int32Type? embedSplashWidth, String? embedSplash, Int32Type? splashHeight, Int32Type? splashWidth, Int32Type? bannerHeight, Int32Type? approximatePresenceCount, String? contentWarningText, Int32Type? bannerWidth, String? banner, String? icon, DateTime? messageHistoryCutoff, String? permissions, List<GuildRoleResponse>? roles, List<GuildEmojiResponse>? emojis, List<GuildStickerResponse>? stickers, List<ChannelResponse>? channels, Int32Type? memberCount, Int32Type? onlineCount, Int32Type? approximateMemberCount, 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
approximateMemberCount → Int32Type?
final
approximatePresenceCount → Int32Type?
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 → SnowflakeType?
Custom guild-wide content warning text; null falls back to a localized default
final
defaultMessageNotifications → DefaultMessageNotifications
Default notification level for new members
final
disabledOperations → int
final
embedSplash → SnowflakeType?
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 → SnowflakeType?
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 → SnowflakeType?
The current user permissions in this guild when available
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 → SnowflakeType?
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 → int
final
systemChannelId → SnowflakeType?
The ID of the channel where system messages are sent
final
vanityUrlCode → SnowflakeType?
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