Table of Contents

Class DiscordUser

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

Represents a Discord user.

public class DiscordUser : SnowflakeObject
Inheritance
DiscordUser
Derived
Inherited Members

Properties

AvatarHash

Gets the user's avatar hash.

AvatarUrl

Gets the user's avatar URL.

BannerColor

Gets the user's banner color, if set. Mutually exclusive with BannerHash.

BannerHash

Gets the user's profile banner hash. Mutually exclusive with BannerColor.

BannerUrl

Gets the user's banner url.

DefaultAvatarUrl

Gets the URL of default avatar for this user.

Discriminator

Gets the user's 4-digit discriminator.

Email

Gets the user's email address.

This is only present in OAuth.

Flags

Gets the user's flags.

GlobalName

Gets this user's global display name.

IsBot

Gets whether the user is a bot.

IsCurrent

Gets whether this user is the Client which created this object.

IsSystem

Gets whether the user is an official Discord system user.

Locale

Gets the user's chosen language

Mention

Gets the user's mention string.

MfaEnabled

Gets whether the user has multi-factor authentication enabled.

OAuthFlags

Gets the user's flags for OAuth.

PremiumType

Gets the user's premium type.

Presence

Gets this user's presence.

Username

Gets this user's username.

Verified

Gets whether the user is verified.

This is only present in OAuth.

Methods

Equals(DiscordUser)

Checks whether this DiscordUser is equal to another DiscordUser.

Equals(object)

Checks whether this DiscordUser is equal to another object.

GetAvatarUrl(ImageFormat, ushort)

Gets the user's avatar URL, in requested format and size.

GetHashCode()

Gets the hash code for this DiscordUser.

ToString()

Returns a string representation of this user.

UnbanAsync(DiscordGuild, string)

Unbans this user from a guild.

Operators

operator ==(DiscordUser, DiscordUser)

Gets whether the two DiscordUser objects are equal.

operator !=(DiscordUser, DiscordUser)

Gets whether the two DiscordUser objects are not equal.