Table of Contents

Class GuildMember

Namespace
Fluxer.Net
Assembly
Fluxer.Net.dll

Fluxer entity with client attached.

public class GuildMember : Entity, IGuildMember, ISnowflake, IMentionable
Inheritance
object
GuildMember
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

string

BannerHash

The hash of the member guild-specific banner.

public string? BannerHash { get; }

Property Value

string

CommunicationDisabledUntil

ISO8601 timestamp until which the member is timed out.

public DateTimeOffset? CommunicationDisabledUntil { get; }

Property Value

DateTimeOffset?

CreatedAt

Object created at UTC date.

public DateTimeOffset CreatedAt { get; }

Property Value

DateTimeOffset

GuildId

Guild id that the user is in.

public ulong GuildId { get; }

Property Value

ulong

Id

Unique identifier (snowflake) for the object.

public ulong Id { get; }

Property Value

ulong

IsDeaf

Whether the member is deafened in voice channels.

public bool IsDeaf { get; }

Property Value

bool

IsMute

Whether the member is muted in voice channels.

public bool IsMute { get; }

Property Value

bool

JoinedAt

ISO8601 timestamp of when the user joined the guild.

public DateTimeOffset JoinedAt { get; }

Property Value

DateTimeOffset

Mention

Formatted mention string for this object.

public string Mention { get; }

Property Value

string

Nickname

The nickname of the member in this guild.

public string? Nickname { get; }

Property Value

string

RoleIds

Array of role IDs the member has.

public HashSet<ulong> RoleIds { get; }

Property Value

HashSet<ulong>

User

public User User { get; }

Property Value

User

Methods

Create(FluxerBaseClient, GuildMemberJson)

Create a GuildMember object from json.

public static GuildMember Create(FluxerBaseClient client, GuildMemberJson json)

Parameters

client FluxerBaseClient
json GuildMemberJson

Returns

GuildMember

GetAvatarOrDefaultUrl(int)

Get the members's avatar or fallback to default.

public string GetAvatarOrDefaultUrl(int size = 160)

Parameters

size int

Returns

string

GetAvatarUrl(int)

Get the members's avatar.

public string? GetAvatarUrl(int size = 160)

Parameters

size int

Returns

string

GetBannerUrl(int)

Get the member's banner.

public string? GetBannerUrl(int size = 1024)

Parameters

size int

Returns

string

GetCurrentName()

Get the members's current nickname, display name or username.

public string GetCurrentName()

Returns

string

GetDefaultAvatarUrl()

Get the default avatar for the user.

public string GetDefaultAvatarUrl()

Returns

string