Class DiscordGuildData
Represents a discord Guild Structure API model. Docs: https://discord.com/developers/docs/resources/guild#guild-object-guild-structure
Implements
Inherited Members
Namespace: Color_Chan.Discord.Core.Common.API.DataModels.Guild
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordGuildData : IEquatable<DiscordGuildData>
Properties
| Improve this Doc View SourceAfkChannelId
Id of afk channel.
Declaration
[JsonPropertyName("afk_channel_id")]
public ulong? AfkChannelId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
AfkTimeout
Afk timeout in seconds.
Declaration
[JsonPropertyName("afk_timeout")]
public int AfkTimeout { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ApplicationId
Application id of the guild creator if it is bot-created.
Declaration
[JsonPropertyName("application_id")]
public ulong? ApplicationId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
ApproximateMemberCount
Approximate number of members in this guild, returned from the GET /guilds/{id} endpoint when with_counts is true.
Declaration
[JsonPropertyName("approximate_member_count")]
public int? ApproximateMemberCount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
ApproximatePresenceCount
Approximate number of non-offline members in this guild, returned from the GET /guilds/{id} endpoint when with_counts is true.
Declaration
[JsonPropertyName("approximate_presence_count")]
public int? ApproximatePresenceCount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
Banner
Banner hash.
Declaration
[JsonPropertyName("banner")]
public string Banner { get; set; }
Property Value
Type | Description |
---|---|
String |
Channels
Channels in the guild.
Declaration
[JsonPropertyName("channels")]
public IEnumerable<DiscordChannelData> Channels { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordChannelData> |
Remarks
Only send on the 'GUILD_CREATE' event.
CurrentUserPermission
Total permissions for the user in the guild (excludes overwrites).
Declaration
[JsonPropertyName("permission")]
public string CurrentUserPermission { get; set; }
Property Value
Type | Description |
---|---|
String |
DefaultMessageNotifications
Default message notifications level.
Declaration
[JsonPropertyName("default_message_notifications")]
public DiscordGuildDefaultMessageNotificationLevel DefaultMessageNotifications { get; set; }
Property Value
Type | Description |
---|---|
DiscordGuildDefaultMessageNotificationLevel |
Description
The description of a Community guild.
Declaration
[JsonPropertyName("description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
DiscoverySplash
Discovery splash hash; only present for guilds with the "DISCOVERABLE" feature.
Declaration
[JsonPropertyName("discovery_splash")]
public string DiscoverySplash { get; set; }
Property Value
Type | Description |
---|---|
String |
Emojis
Custom guild emojis.
Declaration
[JsonPropertyName("emojis")]
public IEnumerable<DiscordEmojiData> Emojis { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordEmojiData> |
ExplicitContentFilter
Explicit content filter level.
Declaration
[JsonPropertyName("explicit_content_filter")]
public DiscordGuildExplicitContentFilterLevel ExplicitContentFilter { get; set; }
Property Value
Type | Description |
---|---|
DiscordGuildExplicitContentFilterLevel |
Features
Enabled guild features.
Declaration
[JsonPropertyName("features")]
public IEnumerable<DiscordGuildFeature> Features { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordGuildFeature> |
Icon
Icon hash.
Declaration
[JsonPropertyName("icon")]
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
String |
IconHash
Icon hash, returned when in the template object.
Declaration
[JsonPropertyName("icon_hash")]
public string IconHash { get; set; }
Property Value
Type | Description |
---|---|
String |
Id
Guild id.
Declaration
[JsonPropertyName("id")]
public ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
IsOwner
True if the user is the owner of the guild.
Declaration
[JsonPropertyName("owner")]
public bool? IsOwner { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
Remarks
Only sent when using the GET Current User Guilds endpoint and are relative to the requested user.
JoinedAt
When the current user joined this guild.
Declaration
[JsonPropertyName("joined_at")]
public DateTimeOffset? JoinedAt { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTimeOffset> |
Remarks
Only send on the 'GUILD_CREATE' event.
Large
True if this is considered a large guild.
Declaration
[JsonPropertyName("large")]
public bool? Large { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
Remarks
Only send on the 'GUILD_CREATE' event.
MaxMembers
The maximum number of members for the guild.
Declaration
[JsonPropertyName("max_members")]
public int? MaxMembers { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
MaxPresences
The maximum number of presences for the guild (null is always returned, apart from the largest of guilds).
Declaration
[JsonPropertyName("max_presences")]
public int? MaxPresences { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
MaxVideoChannelUsers
The maximum amount of users in a video channel.
Declaration
[JsonPropertyName("max_video_channel_users")]
public int? MaxVideoChannelUsers { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
MemberCount
Total number of members in this guild.
Declaration
[JsonPropertyName("member_count")]
public int? MemberCount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
Remarks
Only send on the 'GUILD_CREATE' event.
Members
Users in the guild.
Declaration
[JsonPropertyName("members")]
public IEnumerable<DiscordGuildMemberData> Members { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordGuildMemberData> |
Remarks
Only send on the 'GUILD_CREATE' event.
MfaLevel
Required MFA level for the guild.
Declaration
[JsonPropertyName("mfa_level")]
public DiscordGuildMfaLevel MfaLevel { get; set; }
Property Value
Type | Description |
---|---|
DiscordGuildMfaLevel |
Name
Guild name (2-100 characters, excluding trailing and leading whitespace).
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
NsfwLevel
Guild NSFW level.
Declaration
[JsonPropertyName("nsfw_level")]
public DiscordGuildNsfwLevel NsfwLevel { get; set; }
Property Value
Type | Description |
---|---|
DiscordGuildNsfwLevel |
OwnerId
Id of owner.
Declaration
[JsonPropertyName("owner_id")]
public ulong OwnerId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
PreferredLocale
The preferred locale of a Community guild; used in server discovery and notices from Discord; defaults to "en-US".
Declaration
[JsonPropertyName("preferred_locale")]
public string PreferredLocale { get; set; }
Property Value
Type | Description |
---|---|
String |
PremiumSubscriptionCount
The number of boosts this guild currently has.
Declaration
[JsonPropertyName("premium_subscription_count")]
public int? PremiumSubscriptionCount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
PremiumTier
Premium tier (Server Boost level).
Declaration
[JsonPropertyName("premium_tier")]
public DiscordGuildPremiumTier PremiumTier { get; set; }
Property Value
Type | Description |
---|---|
DiscordGuildPremiumTier |
Presences
presences of the members in the guild, will only include non-offline members if the size is greater than large threshold.
Declaration
[JsonPropertyName("presences")]
public IEnumerable<DiscordGuildPresenceData> Presences { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordGuildPresenceData> |
Remarks
Only send on the 'GUILD_CREATE' event.
If you are using Gateway Intents, you must specify the GUILD_PRESENCES intent in order to receive Presence Update events.
PublicUpdatesChannelId
The id of the channel where admins and moderators of Community guilds receive notices from Discord.
Declaration
[JsonPropertyName("public_updates_channel_id")]
public ulong? PublicUpdatesChannelId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Region
Voice region id for the guild (deprecated).
Declaration
[Obsolete("This field is deprecated and will be removed in v9 and is replaced by rtc_region")]
[JsonPropertyName("region")]
public string Region { get; set; }
Property Value
Type | Description |
---|---|
String |
Remarks
This field is deprecated and will be removed in v9 and is replaced by rtc_region.
Roles
Roles in the guild.
Declaration
[JsonPropertyName("roles")]
public IEnumerable<DiscordGuildRoleData> Roles { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordGuildRoleData> |
RulesChannelId
The id of the channel where Community guilds can display rules and/or guidelines.
Declaration
[JsonPropertyName("rules_channel_id")]
public ulong? RulesChannelId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Splash
Splash hash.
Declaration
[JsonPropertyName("splash")]
public string Splash { get; set; }
Property Value
Type | Description |
---|---|
String |
StageInstances
Stage instances in the guild.
Declaration
[JsonPropertyName("stage_instances")]
public DiscordStageinstanceData StageInstances { get; set; }
Property Value
Type | Description |
---|---|
DiscordStageinstanceData |
Remarks
Only send on the 'GUILD_CREATE' event.
SystemChannelFlags
The system channel flags.
Declaration
[JsonPropertyName("system_channel_flags")]
public DiscordSystemChannelFlags SystemChannelFlags { get; set; }
Property Value
Type | Description |
---|---|
DiscordSystemChannelFlags |
SystemChannelId
The id of the channel where guild notices such as welcome messages and boost events are posted.
Declaration
[JsonPropertyName("system_channel_id")]
public ulong? SystemChannelId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Threads
All active threads in the guild that current user has permission to view.
Declaration
[JsonPropertyName("threads")]
public IEnumerable<DiscordChannelData> Threads { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordChannelData> |
Remarks
Only send on the 'GUILD_CREATE' event.
Unavailable
True if this guild is unavailable due to an outage.
Declaration
[JsonPropertyName("unavailable")]
public bool? Unavailable { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
Remarks
Only send on the 'GUILD_CREATE' event.
VanityUrlCode
The vanity url code for the guild.
Declaration
[JsonPropertyName("vanity_url_code")]
public string VanityUrlCode { get; set; }
Property Value
Type | Description |
---|---|
String |
VerificationLevel
Verification level required for the guild.
Declaration
[JsonPropertyName("verification_level")]
public DiscordGuildVerificationLevel VerificationLevel { get; set; }
Property Value
Type | Description |
---|---|
DiscordGuildVerificationLevel |
VoiceStates
States of members currently in voice channels; lacks the guild_id key.
Declaration
[JsonPropertyName("voice_states")]
public IEnumerable<DiscordVoiceState> VoiceStates { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordVoiceState> |
Remarks
Only send on the 'GUILD_CREATE' event.
WelcomeScreen
The welcome screen of a Community guild, shown to new members, returned in an Invite's guild object.
Declaration
[JsonPropertyName("welcome_screen")]
public DiscordGuildWelcomeScreenData WelcomeScreen { get; set; }
Property Value
Type | Description |
---|---|
DiscordGuildWelcomeScreenData |
WidgetChannelId
The channel id that the widget will generate an invite to, or null if set to no invite.
Declaration
[JsonPropertyName("widget_channel_id")]
public ulong? WidgetChannelId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
WidgetEnabled
True if the server widget is enabled.
Declaration
[JsonPropertyName("widget_enabled")]
public bool? WidgetEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |