import { ClientPresence } from "https://deno.land/x/harmony@v2.6.0/src/structures/presence.ts";
Constructors
new
ClientPresence(data?: ClientActivity | StatusPayload | ActivityGame)Properties
Methods
create(): StatusPayload
Creates Presence Payload
createActivity(): ActivityGame[] | null
Creates Activity Payload
parse(payload: StatusPayload): ClientPresence
Parses from Payload
Remove AFK (set false)
setActivities(activities: ActivityGame[]): ClientPresence
Set Activities for Presence
setActivity(activity: ActivityGame): ClientPresence
Set Activity for Presence
setAFK(afk: boolean): ClientPresence
Set AFK value
setSince(since?: number): ClientPresence
Set Since property of Activity
setStatus(status: StatusType): ClientPresence
Set Status of Presence
Toggle AFK (boolean) value
Static Methods
parse(payload: StatusUpdatePayload): ClientPresence
Parses from Payload and creates new ClientPresence