Downgrade to v13

[vi] cảm giác đau khổ
This commit is contained in:
March 7th
2022-03-24 17:55:32 +07:00
parent 9596b1a210
commit 7dfdef46a5
218 changed files with 8584 additions and 9108 deletions

View File

@@ -29,9 +29,11 @@ class RESTManager {
}
getAuth() {
const token = this.client.token ?? this.client.accessToken;
if (token && !this.client.bot) return `${token}`;
else if(token && this.client.bot) return `Bot ${token}`;
if (this.client.token && this.client.user && this.client.user.bot) {
return `Bot ${this.client.token}`;
} else if (this.client.token) {
return this.client.token;
}
throw new Error('TOKEN_MISSING');
}
@@ -60,4 +62,4 @@ class RESTManager {
}
}
module.exports = RESTManager;
module.exports = RESTManager;