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

x/harmony/src/structures/user.ts>User

An easy to use Discord API Library for Deno.
Go to Latest
class User
extends SnowflakeBase
import { User } from "https://deno.land/x/harmony@v2.6.0/src/structures/user.ts";

Constructors

new
User(client: Client, data: UserPayload)

Properties

optional
avatar: string
optional
bot: boolean
readonly
defaultAvatarURL: string
discriminator: string
optional
email: string
id: string
optional
locale: string
readonly
mention: string
optional
mfaEnabled: boolean
readonly
nickMention: string
optional
premiumType: 0 | 1 | 2

Nitro type of the User.

0 = No Nitro 1 = Classic Nitro 2 = Regular Nitro

publicFlags: UserFlagsManager
optional
system: boolean
readonly
tag: string
username: string
optional
verified: boolean

Methods

avatarURL(format?: ImageFormats, size?: ImageSize): string
createDM(): Promise<DMChannel>
resolveDM(): Promise<DMChannel>
send(content: string | AllMessageOptions, options?: AllMessageOptions): Promise<Message>
toString(): string