Skip to main content

DiscordUser

@discordeno/botDocs


Documentation / @discordeno/bot / DiscordUser

Interface: DiscordUser

https://discord.com/developers/docs/resources/user#user-object

Properties

accent_color?

optional accent_color: number

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

Defined in

packages/types/dist/types/discord.d.ts:17


avatar

avatar: null | string

The user's avatar hash

Defined in

packages/types/dist/types/discord.d.ts:23


avatar_decoration_data?

optional avatar_decoration_data: DiscordAvatarDecorationData

data for the user's avatar decoration

Defined in

packages/types/dist/types/discord.d.ts:37


optional banner: string

the user's banner, or null if unset

Defined in

packages/types/dist/types/discord.d.ts:35


bot?

optional bot: boolean

Whether the user belongs to an OAuth2 application

Defined in

packages/types/dist/types/discord.d.ts:25


discriminator

discriminator: string

The user's discord-tag

Defined in

packages/types/dist/types/discord.d.ts:21


email?

optional email: null | string

The user's email

Defined in

packages/types/dist/types/discord.d.ts:33


flags?

optional flags: number

The flags on a user's account

Defined in

packages/types/dist/types/discord.d.ts:11


global_name

global_name: null | string

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

Defined in

packages/types/dist/types/discord.d.ts:7


id

id: string

The user's id

Defined in

packages/types/dist/types/discord.d.ts:19


locale?

optional locale: string

The user's chosen language option

Defined in

packages/types/dist/types/discord.d.ts:9


mfa_enabled?

optional mfa_enabled: boolean

Whether the user has two factor enabled on their account

Defined in

packages/types/dist/types/discord.d.ts:29


premium_type?

optional premium_type: PremiumTypes

The type of Nitro subscription on a user's account

Defined in

packages/types/dist/types/discord.d.ts:13


public_flags?

optional public_flags: number

The public flags on a user's account

Defined in

packages/types/dist/types/discord.d.ts:15


system?

optional system: boolean

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

Defined in

packages/types/dist/types/discord.d.ts:27


username

username: string

The user's username, not unique across the platform

Defined in

packages/types/dist/types/discord.d.ts:5


verified?

optional verified: boolean

Whether the email on this account has been verified

Defined in

packages/types/dist/types/discord.d.ts:31