Skip to main content
Module

x/discord_rpc_deno/mod.ts>ClientUser#setActivity

port of @xhayper/discord-rpc to deno
Go to Latest
method ClientUser.prototype.setActivity
Re-export
import { ClientUser } from "https://deno.land/x/discord_rpc_deno@v1.0.25/mod.ts";

Used to update a user's Rich Presence.

Parameters

activity: SetActivity
  • the rich presence to assign to the user
optional
pid: number
  • the application's process id

Returns

The activity that have been set