Code fix #3, requirements again

This commit is contained in:
ZiomaleQ 2021-01-05 14:53:00 +01:00
parent 60164122bf
commit 734133bcca
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ export class Guild extends Base {
async awaitAvailability(delay: number = 1000): Promise<void> {
return await new Promise((resolve, reject) => {
if(!this.unavailable) return;
let listener = (guild: Guild): void => {
const listener = (guild: Guild): void => {
if (guild.id === this.id) {
this.client.removeListener('guildLoaded', listener);
resolve();