mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +01:00
Bad idle logic error
This commit is contained in:
@@ -1010,10 +1010,10 @@ var InternalClient = (function () {
|
|||||||
|
|
||||||
if (idleStatus === "online" || idleStatus === "here" || idleStatus === "available") {
|
if (idleStatus === "online" || idleStatus === "here" || idleStatus === "available") {
|
||||||
this.idleStatus = null;
|
this.idleStatus = null;
|
||||||
} else if (this.idleStatus === "idle" || this.idleStatus === "away") {
|
} else if (idleStatus === "idle" || idleStatus === "away") {
|
||||||
packet.d.idle_since = Date.now();
|
this.idleStatus = Date.now();
|
||||||
} else {
|
} else {
|
||||||
this.idleStatus = this.idleStatus || null; //undefineds
|
this.idleStatus = this.idleStatus || null; //undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
this.game = game === null ? null : game || this.game;
|
this.game = game === null ? null : game || this.game;
|
||||||
|
|||||||
@@ -858,11 +858,11 @@ export default class InternalClient {
|
|||||||
if(idleStatus === "online" || idleStatus === "here" || idleStatus === "available"){
|
if(idleStatus === "online" || idleStatus === "here" || idleStatus === "available"){
|
||||||
this.idleStatus = null;
|
this.idleStatus = null;
|
||||||
}
|
}
|
||||||
else if (this.idleStatus === "idle" || this.idleStatus === "away") {
|
else if (idleStatus === "idle" || idleStatus === "away") {
|
||||||
packet.d.idle_since = Date.now();
|
this.idleStatus = Date.now();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.idleStatus = this.idleStatus || null; //undefineds
|
this.idleStatus = this.idleStatus || null; //undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
this.game = game === null ? null : game || this.game;
|
this.game = game === null ? null : game || this.game;
|
||||||
|
|||||||
Reference in New Issue
Block a user