Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/harmony/src/structures/presence.ts>ClientPresence

An easy to use Discord API Library for Deno.
Go to Latest
class ClientPresence
import { ClientPresence } from "https://deno.land/x/harmony@v2.9.0/src/structures/presence.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

Parses from Payload and creates new ClientPresence