Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Sep 23, 2018
1 parent 624eac1 commit 905c282
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,12 @@ class RPCClient extends EventEmitter {
.then(() => stop);
}

/**
* Sets the presence for the logged in user.
* @param {object} args The rich presence to pass.
* @param {number} [pid] The application's process ID. Defaults to the executing process' PID.
* @returns {Promise}
*/
setActivity(args = {}, pid = getPid()) {
let timestamps;
let assets;
Expand Down

0 comments on commit 905c282

Please sign in to comment.