Table of Contents

Interface IUser

Namespace
Fluxer.Net
Assembly
Fluxer.Net.dll
public interface IUser : IMentionable, ISnowflake
Inherited Members

Properties

AvatarColor

The dominant avatar color of the user as an integer.

int? AvatarColor { get; }

Property Value

int?

AvatarHash

The hash of the user avatar image.

string? AvatarHash { get; }

Property Value

string

Discriminator

The four-digit discriminator tag of the user.

string Discriminator { get; }

Property Value

string

DisplayName

The display name of the user, if set.

string? DisplayName { get; }

Property Value

string

Flags

The public flags on the user account.

UserFlags Flags { get; }

Property Value

UserFlags

IsBot

Whether the user is a bot account.

bool IsBot { get; }

Property Value

bool

IsSystem

Whether the user is an official system user.

bool IsSystem { get; }

Property Value

bool

MentionPreference

If a user wants to be mentioned or not in replies.

MentionPreference MentionPreference { get; }

Property Value

MentionPreference

Username

The username of the user, not unique across the platform.

string Username { get; }

Property Value

string

Methods

GetAvatarOrDefaultUrl(int)

Get the user's avatar or fallback to default.

string GetAvatarOrDefaultUrl(int size)

Parameters

size int

Returns

string

GetAvatarUrl(int)

Get the user's avatar.

string? GetAvatarUrl(int size)

Parameters

size int

Returns

string

GetCurrentName()

Get the user's current display name or username.

string GetCurrentName()

Returns

string

GetDefaultAvatarUrl()

Get the default avatar for the user.

string GetDefaultAvatarUrl()

Returns

string