Make client.user.game use the proper format

This commit is contained in:
abalabahaha
2016-04-20 20:18:25 -07:00
parent 907f4f4b27
commit b6842d3e07
2 changed files with 6 additions and 2 deletions

View File

@@ -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();
};

View File

@@ -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();