Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PresenceBuilder

Hierarchy

  • PresenceBuilder

Implements

  • PresenceUpdateData

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

afk

afk: boolean

Whether or not the client is afk.

since

0.0.1

game

game: APIActivityData | null

Null, or the user's new activity.

since

0.0.1

see

https://discord.com/developers/docs/topics/gateway#activity-object

since

since: number | null

Unix time (in milliseconds) of when the client went idle, or null if the client is not idle.

since

0.0.1

status

Methods

setAfk

  • setAfk(afk: boolean): this

setGame

setSince

  • setSince(since?: Date | number | null): this
  • Modifies the presence and returns it.

    since

    0.0.1

    Parameters

    • Default value since: Date | number | null = Date.now()

      Unix time (in milliseconds) of when the client went idle, or null if the client is not idle.

    Returns this

setStatus

Generated using TypeDoc