Class SocketGuild
Cached guild from the gateway.
public class SocketGuild : Guild, IGuild, IPartialGuild, ISnowflake
- Inheritance
-
objectSocketGuild
- Implements
- Inherited Members
- Extension Methods
Properties
Channels
public ConcurrentDictionary<ulong, Channel> Channels { get; }
Property Value
CurrentMember
Cached current logged in member for the guild.
public SocketGuildMember CurrentMember { get; }
Property Value
Emojis
public ConcurrentDictionary<ulong, GuildEmoji> Emojis { get; }
Property Value
EveryoneRole
public SocketRole EveryoneRole { get; }
Property Value
HasAllMembers
public bool HasAllMembers { get; }
Property Value
IsAvailable
public bool IsAvailable { get; }
Property Value
Members
public ConcurrentDictionary<ulong, SocketGuildMember> Members { get; }
Property Value
Permissions
Permissions for the guild.
public GuildPermissions Permissions { get; }
Property Value
Roles
public ConcurrentDictionary<ulong, SocketRole> Roles { get; }
Property Value
Stickers
public ConcurrentDictionary<ulong, GuildSticker> Stickers { get; }
Property Value
Methods
Create(FluxerBaseClient, GuildGatewayData, SocketGuildMember)
Create a SocketGuild object from json.
public static SocketGuild Create(FluxerBaseClient client, GuildGatewayData json, SocketGuildMember currentMember)
Parameters
clientFluxerBaseClientjsonGuildGatewayDatacurrentMemberSocketGuildMember
Returns
GetChannel(ulong)
public Channel? GetChannel(ulong channelId)
Parameters
channelIdulong
Returns
GetMember(ulong)
public SocketGuildMember? GetMember(ulong userId)
Parameters
userIdulong
Returns
GetRole(ulong)
public SocketRole? GetRole(ulong roleId)
Parameters
roleIdulong