From 17aac769bbb0e86fb654fe5a8a5e3428148aeb1a Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Fri, 11 Oct 2019 22:39:49 +0300 Subject: [PATCH] Fix error reporting in WelcomeMessage --- src/plugins/WelcomeMessage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/WelcomeMessage.ts b/src/plugins/WelcomeMessage.ts index 78ab00dc..f1f53735 100644 --- a/src/plugins/WelcomeMessage.ts +++ b/src/plugins/WelcomeMessage.ts @@ -53,7 +53,7 @@ export class WelcomeMessagePlugin extends ZeppelinPlugin { if (!dmChannel) return; try { - createChunkedMessage(dmChannel, formatted); + await createChunkedMessage(dmChannel, formatted); } catch (e) { this.logs.log(LogType.BOT_ALERT, { body: `Failed send a welcome DM to {userMention(member)}`, @@ -67,7 +67,7 @@ export class WelcomeMessagePlugin extends ZeppelinPlugin { if (!channel || !(channel instanceof TextChannel)) return; try { - createChunkedMessage(channel, formatted); + await createChunkedMessage(channel, formatted); } catch (e) { this.logs.log(LogType.BOT_ALERT, { body: `Failed send a welcome message for {userMention(member)} to {channelMention(channel)}`,