Skip to main content

Class: User

Hierarchy​

Constructors​

constructor​

• new User(client, data)

Parameters​

NameType
clientClient
dataAPIUser

Overrides​

Base.constructor

Defined in​

packages/libcord/src/structures/User.ts:62

Properties​

avatar​

• avatar: null | string

hash of user avatar

Defined in​

packages/libcord/src/structures/User.ts:20


bot​

• bot: boolean

if the user is a bot

Defined in​

packages/libcord/src/structures/User.ts:40


client​

• Readonly client: Client

Inherited from​

Base.client

Defined in​

packages/libcord/src/structures/Base.ts:8


createAt​

• Readonly createAt: number

the date of the user account was created in timestamp

Defined in​

packages/libcord/src/structures/User.ts:50


discriminator​

• discriminator: string

discriminator of the user

Defined in​

packages/libcord/src/structures/User.ts:30


id​

• id: string

the id of the user

Defined in​

packages/libcord/src/structures/User.ts:15


publicFlags​

• publicFlags: number

user public's flags

Defined in​

packages/libcord/src/structures/User.ts:55


system​

• system: boolean

if the user are a official discord system user

Defined in​

packages/libcord/src/structures/User.ts:45


tag​

• tag: string

tag of the user (username#descriminator)

Defined in​

packages/libcord/src/structures/User.ts:35


username​

• username: string

username of the user

Defined in​

packages/libcord/src/structures/User.ts:25

Methods​

avatarURL​

▸ avatarURL(__namedParameters): string

get avatar URL

Parameters​

NameType
__namedParametersImageUrlOptions

Returns​

string

Defined in​

packages/libcord/src/structures/User.ts:83


toJSON​

▸ toJSON(space?): string

Parameters​

NameTypeDefault value
spacenumber1

Returns​

string

Defined in​

packages/libcord/src/structures/User.ts:97


toString​

▸ toString(): string

Returns​

string

Defined in​

packages/libcord/src/structures/User.ts:93