mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
Make client.user.game use the proper format
This commit is contained in:
@@ -1384,7 +1384,9 @@ var InternalClient = (function () {
|
|||||||
this.sendWS(packet);
|
this.sendWS(packet);
|
||||||
|
|
||||||
this.user.status = this.idleStatus ? "idle" : "online";
|
this.user.status = this.idleStatus ? "idle" : "online";
|
||||||
this.user.game = this.game;
|
this.user.game = {
|
||||||
|
name: this.game
|
||||||
|
};
|
||||||
|
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1170,7 +1170,9 @@ export default class InternalClient {
|
|||||||
this.sendWS(packet);
|
this.sendWS(packet);
|
||||||
|
|
||||||
this.user.status = this.idleStatus ? "idle" : "online";
|
this.user.status = this.idleStatus ? "idle" : "online";
|
||||||
this.user.game = this.game;
|
this.user.game = {
|
||||||
|
name: this.game
|
||||||
|
};
|
||||||
|
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user