Skip to content

User

Constructors

new User()

new User(client, user): User

Parameters

ParameterType
clientClient<Transformers, CacheManagerStructure>
userStructure

Returns

User

Defined in

transformers/src/factories/user.ts:28

Properties

id

readonly id: string

Defined in

transformers/src/factories/user.ts:7


username

readonly username: string

Defined in

transformers/src/factories/user.ts:8


discriminator

readonly discriminator: string

Defined in

transformers/src/factories/user.ts:9


globalName

readonly globalName: null | string

Defined in

transformers/src/factories/user.ts:10


avatar

readonly avatar: null | string

Defined in

transformers/src/factories/user.ts:11


bot

readonly bot: boolean

Defined in

transformers/src/factories/user.ts:12


system

readonly system: boolean

Defined in

transformers/src/factories/user.ts:13


mfaEnabled

readonly mfaEnabled: boolean

Defined in

transformers/src/factories/user.ts:14


readonly banner: undefined | null | string

Defined in

transformers/src/factories/user.ts:15


accentColor

readonly accentColor: undefined | null | number

Defined in

transformers/src/factories/user.ts:16


locale

readonly locale: undefined | string

Defined in

transformers/src/factories/user.ts:17


verified

readonly verified: boolean

Defined in

transformers/src/factories/user.ts:18


email

readonly email: undefined | null | string

Defined in

transformers/src/factories/user.ts:19


flags

readonly flags: number

Defined in

transformers/src/factories/user.ts:20


premiumType

readonly premiumType: PremiumType

Defined in

transformers/src/factories/user.ts:21


publicFlags

readonly publicFlags: number

Defined in

transformers/src/factories/user.ts:22


avatarDecoration

readonly avatarDecoration: undefined | null | string

Defined in

transformers/src/factories/user.ts:23


member

readonly member: undefined | GuildMember

Defined in

transformers/src/factories/user.ts:24


client

readonly client: Client<Transformers, CacheManagerStructure>

Defined in

transformers/src/factories/user.ts:26

Methods

avatarURL()

avatarURL(options?): string

Parameters

ParameterType
options?CDNOptions

Returns

string

Defined in

transformers/src/factories/user.ts:52