Skip to main content

User

@discordeno/bot


Documentation / @discordeno/bot / User

Interface: User

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

Properties

accentColor?

optional accentColor: number

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

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:1673

The user's avatar hash


avatarDecorationData?

optional avatarDecorationData: AvatarDecorationData

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

data for the user's avatar decoration


optional banner: bigint

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

the user's banner, or null if unset


bot

bot: boolean

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

Whether the user belongs to an OAuth2 application


discriminator

discriminator: string

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

The user's discord-tag


email?

optional email: string

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

The user's email


flags?

optional flags: ToggleBitfield

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

The flags on a user's account


globalName?

optional globalName: string

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

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:1669

The user's id


locale?

optional locale: string

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

The user's chosen language option


mfaEnabled

mfaEnabled: boolean

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

Whether the user has two factor enabled on their account


premiumType?

optional premiumType: PremiumTypes

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

The type of Nitro subscription on a user's account


publicFlags?

optional publicFlags: ToggleBitfield

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

The public flags on a user's account


system

system: boolean

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

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:1681

The user tag in the form of username#discriminator


toggles?

optional toggles: UserToggles

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

Compressed version of all the booleans on a user.


username

username: string

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

The user's username, not unique across the platform


verified

verified: boolean

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

Whether the email on this account has been verified