Skip to main content
Module

x/harmony/mod.ts>ClientPresence

An easy to use Discord API Library for Deno.
Latest
class ClientPresence
Re-export
import { ClientPresence } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Constructors

new
ClientPresence(data?: ClientActivity | StatusPayload | ActivityGame)

Properties

optional
activity: ActivityGame | ActivityGame[]
optional
afk: boolean
optional
clientStatus: ClientStatus
optional
since: number | null
status: StatusType

Methods

create(): StatusPayload

Creates Presence Payload

Creates Activity Payload

parse(payload: StatusPayload): ClientPresence

Parses from Payload

Remove AFK (set false)

Set Activities for Presence

Set Activity for Presence

setAFK(afk: boolean): ClientPresence

Set AFK value

setSince(since?: number): ClientPresence

Set Since property of Activity

Set Status of Presence

Toggle AFK (boolean) value

Static Methods

parse(payload: StatusUpdatePayload): ClientPresence

Parses from Payload and creates new ClientPresence