mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
[v11.3.x] Fix param to setPresence in setActivity (#2270)
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
This commit is contained in:
parent
932980e91f
commit
8cbefcc081
1 changed files with 1 additions and 1 deletions
|
|
@ -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 },
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue