Class Guild
Represents an isolated collection of users and channels, often referred to as a server in the UI. Contains additional information about the guild's current state.
public class Guild : RestGuild, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonGuild>, IComparer<PartialGuildUser>
- Inheritance
-
Guild
- Implements
- Inherited Members
Constructors
Guild(JsonGuild, ulong, Guild)
public Guild(JsonGuild jsonModel, ulong clientId, Guild oldGuild)
Parameters
Guild(JsonGuild, ulong, RestClient)
public Guild(JsonGuild jsonModel, ulong clientId, RestClient client)
Parameters
jsonModel
JsonGuildclientId
ulongclient
RestClient
Properties
ActiveThreads
An array of GuildThread objects, representing all active threads in the Guild that current user has permission to view.
public ImmutableDictionary<ulong, GuildThread> ActiveThreads { get; set; }
Property Value
Channels
A dictionary of IGuildChannel objects, representing channels present in the Guild.
public ImmutableDictionary<ulong, IGuildChannel> Channels { get; set; }
Property Value
IsLarge
Whether the Guild's member count is over the large
threshold.
public bool IsLarge { get; }
Property Value
IsOwner
public override bool IsOwner { get; }
Property Value
IsUnavailable
Whether the Guild is unavailable due to an outage.
public bool IsUnavailable { get; }
Property Value
JoinedAt
When the current user joined the Guild.
public DateTimeOffset JoinedAt { get; }
Property Value
Presences
public ImmutableDictionary<ulong, Presence> Presences { get; set; }
Property Value
ScheduledEvents
A dictionary of GuildScheduledEvent objects, representing currently scheduled events in the Guild.
public ImmutableDictionary<ulong, GuildScheduledEvent> ScheduledEvents { get; set; }
Property Value
StageInstances
A dictionary of StageInstance objects, representing active stage instances in the Guild.
public ImmutableDictionary<ulong, StageInstance> StageInstances { get; set; }
Property Value
UserCount
public int UserCount { get; }
Property Value
Users
public ImmutableDictionary<ulong, GuildUser> Users { get; set; }
Property Value
VoiceStates
A dictionary of VoiceState objects, representing the states of GuildUsers currently in voice channels.
public ImmutableDictionary<ulong, VoiceState> VoiceStates { get; set; }
Property Value
Methods
With(Action<Guild>)
public Guild With(Action<Guild> action)