mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 09:12:22 +00:00
Bad idle logic error
This commit is contained in:
parent
c7b632d854
commit
8a8ba51c2b
2 changed files with 6 additions and 6 deletions
|
|
@ -1010,10 +1010,10 @@ var InternalClient = (function () {
|
|||
|
||||
if (idleStatus === "online" || idleStatus === "here" || idleStatus === "available") {
|
||||
this.idleStatus = null;
|
||||
} else if (this.idleStatus === "idle" || this.idleStatus === "away") {
|
||||
packet.d.idle_since = Date.now();
|
||||
} else if (idleStatus === "idle" || idleStatus === "away") {
|
||||
this.idleStatus = Date.now();
|
||||
} else {
|
||||
this.idleStatus = this.idleStatus || null; //undefineds
|
||||
this.idleStatus = this.idleStatus || null; //undefined
|
||||
}
|
||||
|
||||
this.game = game === null ? null : game || this.game;
|
||||
|
|
|
|||
|
|
@ -858,11 +858,11 @@ export default class InternalClient {
|
|||
if(idleStatus === "online" || idleStatus === "here" || idleStatus === "available"){
|
||||
this.idleStatus = null;
|
||||
}
|
||||
else if (this.idleStatus === "idle" || this.idleStatus === "away") {
|
||||
packet.d.idle_since = Date.now();
|
||||
else if (idleStatus === "idle" || idleStatus === "away") {
|
||||
this.idleStatus = Date.now();
|
||||
}
|
||||
else {
|
||||
this.idleStatus = this.idleStatus || null; //undefineds
|
||||
this.idleStatus = this.idleStatus || null; //undefined
|
||||
}
|
||||
|
||||
this.game = game === null ? null : game || this.game;
|
||||
|
|
|
|||
Loading…
Reference in a new issue