Table of Contents

Class PartialGuildUser

Namespace
NetCord
Assembly
NetCord.dll

Represents a GuildUser object that lacks a GuildId field, as well as methods relying on it.

public class PartialGuildUser : User, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonUser>, IJsonModel<JsonGuildUser>
Inheritance
PartialGuildUser
Implements
Derived
Inherited Members
Extension Methods

Constructors

PartialGuildUser(JsonGuildUser, RestClient)

public PartialGuildUser(JsonGuildUser jsonModel, RestClient client)

Parameters

jsonModel JsonGuildUser
client RestClient

Properties

Deafened

Whether the user is deafened in voice channels.

public bool Deafened { get; }

Property Value

bool

GuildAvatarDecorationData

Data for the guild user's avatar decoration.

public AvatarDecorationData? GuildAvatarDecorationData { get; }

Property Value

AvatarDecorationData

GuildAvatarHash

The user's guild avatar hash.

public string? GuildAvatarHash { get; }

Property Value

string

GuildBannerHash

The user's guild banner hash.

public string? GuildBannerHash { get; }

Property Value

string

GuildBoostStart

When the user started boosting the guild. null if the user has never boosted.

public DateTimeOffset? GuildBoostStart { get; }

Property Value

DateTimeOffset?

GuildFlags

The user's current GuildUserFlags.

public GuildUserFlags GuildFlags { get; }

Property Value

GuildUserFlags

HasGuildAvatar

Whether the user has a guild avatar set.

public bool HasGuildAvatar { get; }

Property Value

bool

HasGuildAvatarDecoration

Whether the user has a set avatar decoration.

public bool HasGuildAvatarDecoration { get; }

Property Value

bool

HasGuildBanner

Whether the user has a guild banner set.

public bool HasGuildBanner { get; }

Property Value

bool

HoistedRoleId

The ID of the user's hoisted role, used to categorize the user in the member list.

public ulong? HoistedRoleId { get; }

Property Value

ulong?

IsPending

Whether the user has passed the guild's Membership Screening requirements.

public bool? IsPending { get; }

Property Value

bool?

JoinedAt

When the user joined the guild.

public DateTimeOffset JoinedAt { get; }

Property Value

DateTimeOffset

Muted

Whether the user is muted in voice channels.

public bool Muted { get; }

Property Value

bool

Nickname

The user's guild nickname.

public string? Nickname { get; }

Property Value

string

RoleIds

A list of ulong IDs representing the user's current roles.

public IReadOnlyList<ulong> RoleIds { get; }

Property Value

IReadOnlyList<ulong>

TimeOutUntil

When the user's current timeout will expire, allowing them to communicate in the guild again. null or a time in the past if the user is not currently timed out.

public DateTimeOffset? TimeOutUntil { get; }

Property Value

DateTimeOffset?

Methods

GetGuildAvatarDecorationUrl()

Gets the ImageUrl of the user's guild avatar decoration.

public ImageUrl? GetGuildAvatarDecorationUrl()

Returns

ImageUrl

An ImageUrl pointing to the user's guild avatar decoration. If the user does not have one set, returns null.