From 1ad9154079a32bea2922c17a05414638c5605469 Mon Sep 17 00:00:00 2001 From: Will Hunt <will@half-shot.uk> Date: Thu, 16 May 2019 18:55:50 +0100 Subject: [PATCH] Add a resolve() --- src/bot.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bot.ts b/src/bot.ts index 387c0b8..1ecd02f 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -145,6 +145,7 @@ export class DiscordBot { const p = new Promise((resolve) => { if (!this.channelLocks[channel.id]) { + resolve(); return; } const i = setInterval(resolve, this.config.limits.discordSendDelay); -- GitLab