Skip to content

Class User

🏭 Constructors

constructor

ts
new User(client: Client, props: Record<string, any>): User

Parameters

  • client: Client
  • props: Record<string, any>

Return Type

  • User

Defined in: packages/discord-rpc/structures/User.ts:47

🏷️ Properties

avatar

ts
avatar: null | string

the user's avatar hash

Defined in: packages/discord-rpc/structures/User.ts:21

avatar_decoration optional

ts
avatar_decoration: null | string

Defined in: packages/discord-rpc/structures/User.ts:45

client

ts
client: Client

the client instance Inherited from: Base.client

Defined in: packages/discord-rpc/structures/Base.ts:7

discriminator

ts
discriminator: string

the user's 4-digit discord-tag

Defined in: packages/discord-rpc/structures/User.ts:17

flags optional

ts
flags: UserFlags

the flags on a user's account

Defined in: packages/discord-rpc/structures/User.ts:25

id

ts
id: string

the user's id

Defined in: packages/discord-rpc/structures/User.ts:9

premium_type optional

ts
premium_type: UserPremiumType

the type of Nitro subscription on a user's account

Defined in: packages/discord-rpc/structures/User.ts:29

presence optional

ts
presence: Object

user's rich presence

Defined in: packages/discord-rpc/structures/User.ts:38

public_flags optional

ts
public_flags: UserFlags

the public flags on a user's account

Defined in: packages/discord-rpc/structures/User.ts:33

username

ts
username: string

the user's username, not unique across the platform

Defined in: packages/discord-rpc/structures/User.ts:13

🔑 Accessors

avatarUrl

Defined in: packages/discord-rpc/structures/User.ts:61

defaultAvatarUrl

Defined in: packages/discord-rpc/structures/User.ts:71

tag

Defined in: packages/discord-rpc/structures/User.ts:78