mirror of
https://github.com/danbulant/discord.js
synced 2026-06-16 13:11:31 +00:00
Make client.user.game use the proper format
This commit is contained in:
parent
907f4f4b27
commit
b6842d3e07
2 changed files with 6 additions and 2 deletions
|
|
@ -1384,7 +1384,9 @@ var InternalClient = (function () {
|
|||
this.sendWS(packet);
|
||||
|
||||
this.user.status = this.idleStatus ? "idle" : "online";
|
||||
this.user.game = this.game;
|
||||
this.user.game = {
|
||||
name: this.game
|
||||
};
|
||||
|
||||
return Promise.resolve();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1170,7 +1170,9 @@ export default class InternalClient {
|
|||
this.sendWS(packet);
|
||||
|
||||
this.user.status = this.idleStatus ? "idle" : "online";
|
||||
this.user.game = this.game;
|
||||
this.user.game = {
|
||||
name: this.game
|
||||
};
|
||||
|
||||
return Promise.resolve();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue