Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method ClientUser.prototype.setActivity
import { ClientUser } from "https://deno.land/x/discord_rpc_deno@v1.0.17/src/structures/ClientUser.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