Interface IDiscordPartialGuild
A local representation for DiscordPartialGuildData.
Namespace: Color_Chan.Discord.Core.Common.Models.Guild
Assembly: Color-Chan.Discord.Core.dll
Syntax
public interface IDiscordPartialGuild
Properties
| Improve this Doc View SourceAfkChannelId
Id of afk channel.
Declaration
ulong? AfkChannelId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
AfkTimeout
Afk timeout in seconds.
Declaration
int? AfkTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
ApplicationId
Application id of the guild creator if it is bot-created.
Declaration
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
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
int? ApproximatePresenceCount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
Banner
Banner hash.
Declaration
string Banner { get; set; }
Property Value
Type | Description |
---|---|
String |
Channels
Channels in the guild.
Declaration
IEnumerable<IDiscordChannel> Channels { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordChannel> |
Remarks
Only send on the 'GUILD_CREATE' event.
CurrentUserPermission
Total permissions for the user in the guild (excludes overwrites).
Declaration
string CurrentUserPermission { get; set; }
Property Value
Type | Description |
---|---|
String |
DefaultMessageNotifications
Default message notifications level.
Declaration
DiscordGuildDefaultMessageNotificationLevel? DefaultMessageNotifications { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordGuildDefaultMessageNotificationLevel> |
Description
The description of a Community guild.
Declaration
string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
DiscoverySplash
Discovery splash hash; only present for guilds with the "DISCOVERABLE" feature.
Declaration
string DiscoverySplash { get; set; }
Property Value
Type | Description |
---|---|
String |
Emojis
Custom guild emojis.
Declaration
IEnumerable<IDiscordEmoji> Emojis { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordEmoji> |
ExplicitContentFilter
Explicit content filter level.
Declaration
DiscordGuildExplicitContentFilterLevel? ExplicitContentFilter { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordGuildExplicitContentFilterLevel> |
Features
Enabled guild features.
Declaration
IEnumerable<DiscordGuildFeature> Features { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordGuildFeature> |
Icon
Icon hash.
Declaration
string Icon { get; set; }
Property Value
Type | Description |
---|---|
String |
IconHash
Icon hash, returned when in the template object.
Declaration
string IconHash { get; set; }
Property Value
Type | Description |
---|---|
String |
Id
The Discord provided snowflake id.
Declaration
ulong? Id { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
IsOwner
True if the user is the owner of the guild.
Declaration
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
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
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
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
int? MaxPresences { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
MaxVideoChannelUsers
The maximum amount of users in a video channel.
Declaration
int? MaxVideoChannelUsers { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
MemberCount
Total number of members in this guild.
Declaration
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
IEnumerable<IDiscordGuildMember> Members { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordGuildMember> |
Remarks
Only send on the 'GUILD_CREATE' event.
MfaLevel
Required MFA level for the guild.
Declaration
DiscordGuildMfaLevel? MfaLevel { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordGuildMfaLevel> |
Name
Guild name (2-100 characters, excluding trailing and leading whitespace).
Declaration
string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
NsfwLevel
Guild NSFW level.
Declaration
DiscordGuildNsfwLevel? NsfwLevel { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordGuildNsfwLevel> |
OwnerId
Id of owner.
Declaration
ulong? OwnerId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
PreferredLocale
The preferred locale of a Community guild; used in server discovery and notices from Discord; defaults to "en-US".
Declaration
string PreferredLocale { get; set; }
Property Value
Type | Description |
---|---|
String |
PremiumSubscriptionCount
The number of boosts this guild currently has.
Declaration
int? PremiumSubscriptionCount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
PremiumTier
Premium tier (Server Boost level).
Declaration
DiscordGuildPremiumTier? PremiumTier { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordGuildPremiumTier> |
Presences
presences of the members in the guild, will only include non-offline members if the size is greater than large threshold.
Declaration
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
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")]
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
IEnumerable<IDiscordGuildRole> Roles { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordGuildRole> |
RulesChannelId
The id of the channel where Community guilds can display rules and/or guidelines.
Declaration
ulong? RulesChannelId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Splash
Splash hash.
Declaration
string Splash { get; set; }
Property Value
Type | Description |
---|---|
String |
StageInstances
Stage instances in the guild.
Declaration
IDiscordStageInstance StageInstances { get; set; }
Property Value
Type | Description |
---|---|
IDiscordStageInstance |
Remarks
Only send on the 'GUILD_CREATE' event.
SystemChannelFlags
The system channel flags.
Declaration
DiscordSystemChannelFlags? SystemChannelFlags { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordSystemChannelFlags> |
SystemChannelId
The id of the channel where guild notices such as welcome messages and boost events are posted.
Declaration
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
IEnumerable<IDiscordChannel> Threads { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordChannel> |
Remarks
Only send on the 'GUILD_CREATE' event.
Unavailable
True if this guild is unavailable due to an outage.
Declaration
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
string VanityUrlCode { get; set; }
Property Value
Type | Description |
---|---|
String |
VerificationLevel
Verification level required for the guild.
Declaration
DiscordGuildVerificationLevel? VerificationLevel { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordGuildVerificationLevel> |
VoiceStates
States of members currently in voice channels; lacks the guild_id key.
Declaration
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
IDiscordGuildWelcomeScreen WelcomeScreen { get; set; }
Property Value
Type | Description |
---|---|
IDiscordGuildWelcomeScreen |
WidgetChannelId
The channel id that the widget will generate an invite to, or null if set to no invite.
Declaration
ulong? WidgetChannelId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
WidgetEnabled
True if the server widget is enabled.
Declaration
bool? WidgetEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |