From 734133bccabf423e0ed68678300ff700b34b2260 Mon Sep 17 00:00:00 2001 From: ZiomaleQ Date: Tue, 5 Jan 2021 14:53:00 +0100 Subject: [PATCH] Code fix #3, requirements again --- src/structures/guild.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/guild.ts b/src/structures/guild.ts index c1af7ca..83db58d 100644 --- a/src/structures/guild.ts +++ b/src/structures/guild.ts @@ -313,7 +313,7 @@ export class Guild extends Base { async awaitAvailability(delay: number = 1000): Promise { 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();