Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discord_rpc_deno/src/structures/User.ts>User

port of @xhayper/discord-rpc to deno
Go to Latest
class User
extends Base
import { User } from "https://deno.land/x/discord_rpc_deno@1.0.8/src/structures/User.ts";

Constructors

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

Properties

avatar: string | null

the user's avatar hash

optional
avatar_decoration: string | null
readonly
avatarUrl

The URL to the user's avatar.

readonly
defaultAvatarUrl

The URL to the user's default avatar. (avatar that is used when user have no avatar)

discriminator: string

the user's 4-digit discord-tag

optional
flags: UserFlags | undefined

the flags on a user's account

id: string

the user's id

optional
premium_type: UserPremiumType | undefined

the type of Nitro subscription on a user's account

optional
presence: { status?: PresenceUpdateStatus; activities?: GatewayActivity[]; } | undefined

user's rich presence

optional
public_flags: UserFlags | undefined

the public flags on a user's account

readonly
tag

User's tag

username: string

the user's username, not unique across the platform