Class GuildGatewayData
Gateway data for GUILD_CREATE and GUILD_UPDATE events. Contains the full guild state including channels, members, roles, and nested guild properties. When Unavailable is true the guild is temporarily unavailable (outage) and only Id and Unavailable will be populated.
public class GuildGatewayData
- Inheritance
-
objectGuildGatewayData
Properties
Channels
Channels present in the guild at the time of the event.
[JsonProperty("channels")]
public List<ChannelGatewayData> Channels { get; set; }
Property Value
Emojis
Emojis defined in the guild.
[JsonProperty("emojis")]
public GuildEmojiJson[]? Emojis { get; set; }
Property Value
- GuildEmojiJson[]
Id
The guild ID.
[JsonProperty("id")]
public ulong Id { get; set; }
Property Value
JoinedAt
When the current user joined this guild.
[JsonProperty("joined_at")]
public DateTimeOffset? JoinedAt { get; set; }
Property Value
MemberCount
Total number of members in the guild.
[JsonProperty("member_count")]
public int MemberCount { get; set; }
Property Value
Members
Members present in the guild at the time of the event.
[JsonProperty("members")]
public List<GuildMemberGatewayData> Members { get; set; }
Property Value
OnlineCount
Number of online members in the guild.
[JsonProperty("online_count")]
public int OnlineCount { get; set; }
Property Value
Properties
Nested guild properties (name, icon, owner, settings, etc.).
[JsonProperty("properties")]
public GuildJson? Properties { get; set; }
Property Value
- GuildJson
Roles
Roles defined in the guild.
[JsonProperty("roles")]
public List<RoleJson> Roles { get; set; }
Property Value
- List<RoleJson>
Stickers
Stickers defined in the guild.
[JsonProperty("stickers")]
public GuildStickerJson[]? Stickers { get; set; }
Property Value
- GuildStickerJson[]
Unavailable
If true, the guild is temporarily unavailable due to an outage. When received on GUILD_CREATE, this indicates the guild is not yet available rather than being joined.
[JsonProperty("unavailable")]
public bool? Unavailable { get; set; }
Property Value
- bool?
VoiceStates
Current voice states for the guild.
[JsonProperty("voice_states")]
public List<VoiceStateJson>? VoiceStates { get; set; }
Property Value
- List<VoiceStateJson>