Skip to main content

User

@discordeno/bot


Documentation / @discordeno/bot / User

Interface: User

Defined in: packages/bot/src/transformers/types.ts:1664

Properties

accentColor?

optional accentColor: number

Defined in: packages/bot/src/transformers/types.ts:1680

the user's banner color encoded as an integer representation of hexadecimal color code


avatar?

optional avatar: bigint

Defined in: packages/bot/src/transformers/types.ts:1686

The user's avatar hash


avatarDecorationData?

optional avatarDecorationData: AvatarDecorationData

Defined in: packages/bot/src/transformers/types.ts:1692

data for the user's avatar decoration


optional banner: bigint

Defined in: packages/bot/src/transformers/types.ts:1690

the user's banner, or null if unset


bot

bot: boolean

Defined in: packages/bot/src/transformers/types.ts:1696

Whether the user belongs to an OAuth2 application


discriminator

discriminator: string

Defined in: packages/bot/src/transformers/types.ts:1684

The user's discord-tag


email?

optional email: string

Defined in: packages/bot/src/transformers/types.ts:1688

The user's email


flags?

optional flags: ToggleBitfield

Defined in: packages/bot/src/transformers/types.ts:1674

The flags on a user's account


globalName?

optional globalName: string

Defined in: packages/bot/src/transformers/types.ts:1670

The user's display name, if it is set. For bots, this is the application name


id

id: bigint

Defined in: packages/bot/src/transformers/types.ts:1682

The user's id


locale?

optional locale: string

Defined in: packages/bot/src/transformers/types.ts:1672

The user's chosen language option


mfaEnabled

mfaEnabled: boolean

Defined in: packages/bot/src/transformers/types.ts:1700

Whether the user has two factor enabled on their account


premiumType?

optional premiumType: PremiumTypes

Defined in: packages/bot/src/transformers/types.ts:1676

The type of Nitro subscription on a user's account


publicFlags?

optional publicFlags: ToggleBitfield

Defined in: packages/bot/src/transformers/types.ts:1678

The public flags on a user's account


system

system: boolean

Defined in: packages/bot/src/transformers/types.ts:1698

Whether the user is an Official Discord System user (part of the urgent message system)


tag

tag: string

Defined in: packages/bot/src/transformers/types.ts:1694

The user tag in the form of username#discriminator


toggles?

optional toggles: UserToggles

Defined in: packages/bot/src/transformers/types.ts:1666

Compressed version of all the booleans on a user.


username

username: string

Defined in: packages/bot/src/transformers/types.ts:1668

The user's username, not unique across the platform


verified

verified: boolean

Defined in: packages/bot/src/transformers/types.ts:1702

Whether the email on this account has been verified