Skip to main content
Module

x/discord_rpc_deno/mod.ts>User

port of @xhayper/discord-rpc to deno
Go to Latest
class User
extends Base
Re-export
import { User } from "https://deno.land/x/discord_rpc_deno@v1.1.1/mod.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