Interface IUser
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
Discriminator
The four-digit discriminator tag of the user.
string Discriminator { get; }
Property Value
DisplayName
The display name of the user, if set.
string? DisplayName { get; }
Property Value
Flags
The public flags on the user account.
UserFlags Flags { get; }
Property Value
IsBot
Whether the user is a bot account.
bool IsBot { get; }
Property Value
IsSystem
Whether the user is an official system user.
bool IsSystem { get; }
Property Value
MentionPreference
If a user wants to be mentioned or not in replies.
MentionPreference MentionPreference { get; }
Property Value
Username
The username of the user, not unique across the platform.
string Username { get; }
Property Value
Methods
GetAvatarOrDefaultUrl(int)
Get the user's avatar or fallback to default.
string GetAvatarOrDefaultUrl(int size)
Parameters
sizeint
Returns
GetAvatarUrl(int)
Get the user's avatar.
string? GetAvatarUrl(int size)
Parameters
sizeint
Returns
GetCurrentName()
Get the user's current display name or username.
string GetCurrentName()
Returns
GetDefaultAvatarUrl()
Get the default avatar for the user.
string GetDefaultAvatarUrl()