Skip to main content

Class: User

Hierarchy​

  • Base

    ↳ User

Constructors​

constructor​

• new User(app, raw)

Parameters​

NameType
appApp
rawAPIUser

Overrides​

Base.constructor

Defined in​

packages/disploy/src/structs/User.ts:32

Properties​

app​

• app: App

Inherited from​

Base.app

Defined in​

packages/disploy/src/structs/Base.ts:4


discriminator​

• discriminator: string

The discriminator of the user.

Example

'0005'

Defined in​

packages/disploy/src/structs/User.ts:30


id​

• id: string

The ID of the user.

Example

'97470053615673344'

Defined in​

packages/disploy/src/structs/User.ts:10


username​

• username: string

The username of the user.

Example

'Disploy'

Defined in​

packages/disploy/src/structs/User.ts:16

Accessors​

tag​

• get tag(): `${string}#${string}`

The tag of the user.

Example

'tristan#0005'

Returns​

`${string}#${string}`

Defined in​

packages/disploy/src/structs/User.ts:22

Methods​

toString​

▸ toString(): string

Returns a string that represents the User object as a mention.

Example

interaction.reply(Hey ${interaction.user}); // => Hey

Tristan

Returns​

string

A string that represents the User object as a mention.

Defined in​

packages/disploy/src/structs/User.ts:44