Class User
🏭 Constructors
constructor
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
avatar: null | string
the user's avatar hash
Defined in: packages/discord-rpc/structures/User.ts:21
avatar_decoration optional
avatar_decoration: null | string
Defined in: packages/discord-rpc/structures/User.ts:45
client
client: Client
the client instance Inherited from: Base.client
Defined in: packages/discord-rpc/structures/Base.ts:7
discriminator
discriminator: string
the user's 4-digit discord-tag
Defined in: packages/discord-rpc/structures/User.ts:17
flags optional
flags: UserFlags
the flags on a user's account
Defined in: packages/discord-rpc/structures/User.ts:25
id
id: string
the user's id
Defined in: packages/discord-rpc/structures/User.ts:9
premium_type optional
premium_type: UserPremiumType
the type of Nitro subscription on a user's account
Defined in: packages/discord-rpc/structures/User.ts:29
presence optional
presence: Object
user's rich presence
Defined in: packages/discord-rpc/structures/User.ts:38
public_flags optional
public_flags: UserFlags
the public flags on a user's account
Defined in: packages/discord-rpc/structures/User.ts:33
username
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