Class GuildMember
Fluxer entity with client attached.
public class GuildMember : Entity, IGuildMember, ISnowflake, IMentionable
- Inheritance
-
objectGuildMember
- Implements
- Derived
- Extension Methods
Properties
AccentColor
The accent colour of the member guild profile as an integer.
public int? AccentColor { get; }
Property Value
- int?
AvatarHash
The hash of the member guild-specific avatar.
public string? AvatarHash { get; }
Property Value
BannerHash
The hash of the member guild-specific banner.
public string? BannerHash { get; }
Property Value
CommunicationDisabledUntil
ISO8601 timestamp until which the member is timed out.
public DateTimeOffset? CommunicationDisabledUntil { get; }
Property Value
CreatedAt
Object created at UTC date.
public DateTimeOffset CreatedAt { get; }
Property Value
GuildId
Guild id that the user is in.
public ulong GuildId { get; }
Property Value
Id
Unique identifier (snowflake) for the object.
public ulong Id { get; }
Property Value
IsDeaf
Whether the member is deafened in voice channels.
public bool IsDeaf { get; }
Property Value
IsMute
Whether the member is muted in voice channels.
public bool IsMute { get; }
Property Value
JoinedAt
ISO8601 timestamp of when the user joined the guild.
public DateTimeOffset JoinedAt { get; }
Property Value
Mention
Formatted mention string for this object.
public string Mention { get; }
Property Value
Nickname
The nickname of the member in this guild.
public string? Nickname { get; }
Property Value
RoleIds
Array of role IDs the member has.
public HashSet<ulong> RoleIds { get; }
Property Value
User
public User User { get; }
Property Value
Methods
Create(FluxerBaseClient, GuildMemberJson)
Create a GuildMember object from json.
public static GuildMember Create(FluxerBaseClient client, GuildMemberJson json)
Parameters
clientFluxerBaseClientjsonGuildMemberJson
Returns
GetAvatarOrDefaultUrl(int)
Get the members's avatar or fallback to default.
public string GetAvatarOrDefaultUrl(int size = 160)
Parameters
sizeint
Returns
GetAvatarUrl(int)
Get the members's avatar.
public string? GetAvatarUrl(int size = 160)
Parameters
sizeint
Returns
GetBannerUrl(int)
Get the member's banner.
public string? GetBannerUrl(int size = 1024)
Parameters
sizeint
Returns
GetCurrentName()
Get the members's current nickname, display name or username.
public string GetCurrentName()
Returns
GetDefaultAvatarUrl()
Get the default avatar for the user.
public string GetDefaultAvatarUrl()