Changed let to const and added login method back
This commit is contained in:
@@ -6,7 +6,7 @@ import { rejects } from 'assert';
|
|||||||
export class Events { // extends rate limits
|
export class Events { // extends rate limits
|
||||||
async init(client) {
|
async init(client) {
|
||||||
this.client = client;
|
this.client = client;
|
||||||
// this.client.login(Config.Token);
|
this.client.login(Config.Token);
|
||||||
}
|
}
|
||||||
|
|
||||||
async handleEvents() {
|
async handleEvents() {
|
||||||
@@ -29,7 +29,7 @@ export class Events { // extends rate limits
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let next = function() {
|
const next = function() {
|
||||||
doNext = true;
|
doNext = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user