Skip to content

Commit

Permalink
[v11.3.x] Fix param to setPresence in setActivity (#2270)
Browse files Browse the repository at this point in the history
ClientUser#setPresence in master branch (latest) calls client.presences.setClientPresence, but that in v11.3 does not
so i change parameter sent to setPresence for clearing the game activity, from activity:null to game:null,
for now until setPresence gets updated
  • Loading branch information
MaySoMusician authored and Lewdcario committed Jan 18, 2018
1 parent 932980e commit 8cbefcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/ClientUser.js
Expand Up @@ -271,7 +271,7 @@ class ClientUser extends User {
* @returns {Promise<Presence>}
*/
setActivity(name, { url, type } = {}) {
if (!name) return this.setPresence({ activity: null });
if (!name) return this.setPresence({ game: null });
return this.setPresence({
game: { name, type, url },
});
Expand Down

0 comments on commit 8cbefcc

Please sign in to comment.