Skip to main content

DiscordUser

@discordeno/bot


Documentation / @discordeno/bot / DiscordUser

Interface: DiscordUser

Defined in: packages/types/dist/types/discord.d.ts:3

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

Properties

accent_color?

optional accent_color: number

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

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


avatar

avatar: null | string

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

The user's avatar hash


avatar_decoration_data?

optional avatar_decoration_data: DiscordAvatarDecorationData

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

data for the user's avatar decoration


optional banner: string

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

the user's banner, or null if unset


bot?

optional bot: boolean

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

Whether the user belongs to an OAuth2 application


discriminator

discriminator: string

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

The user's discord-tag


email?

optional email: null | string

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

The user's email


flags?

optional flags: number

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

The flags on a user's account


global_name

global_name: null | string

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

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


id

id: string

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

The user's id


locale?

optional locale: string

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

The user's chosen language option


mfa_enabled?

optional mfa_enabled: boolean

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

Whether the user has two factor enabled on their account


premium_type?

optional premium_type: PremiumTypes

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

The type of Nitro subscription on a user's account


public_flags?

optional public_flags: number

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

The public flags on a user's account


system?

optional system: boolean

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

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


username

username: string

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

The user's username, not unique across the platform


verified?

optional verified: boolean

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

Whether the email on this account has been verified