Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/revoltio/mod.ts>User

No-nonsense Revolt library for nodejs and deno.
Latest
class User
extends Base
Re-export
import { User } from "https://deno.land/x/revoltio@v1.0.0/mod.ts";

Constructors

new
User(client: Client, data: API.User)

Properties

avatar: Attachment | null
badges: Badges
bot: boolean
readonly
createdAt: Date
readonly
createdTimestamp: number
presence: Presence
username: string

Methods

protected
_patch(data: API.User, clear?: API.FieldsUser[]): this
avatarURL(options?: { size: number; }): string | null
block(): Promise<void>
createDM(): Promise<DMChannel>
displayAvatarURL(options?: { size: number; }): string
fetch(force?): Promise<User>
toString(): string
unblock(): Promise<void>