From aadc1f469969c22d7f5fb6e122a25dba4197810e Mon Sep 17 00:00:00 2001 From: Kovacs Date: Mon, 19 Oct 2020 20:55:33 +0300 Subject: [PATCH] fix(events): fix building --- src/events/Message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/Message.ts b/src/events/Message.ts index a422c5d9..195d9031 100644 --- a/src/events/Message.ts +++ b/src/events/Message.ts @@ -112,7 +112,7 @@ export default class extends Event { try { parsedArgs = await new ArgumentParser(cmd.usage, args.join(' '), cmd.usageDelim, this.client, message).parse(); } catch (res) { - if (cmd.customizedResponses.has(res.arg)) return message.channel.send(cmd.customizedResponses.get(res.arg)); + if (cmd.customizedResponses.has(res.arg)) return message.channel.send(cmd.customizedResponses.get(res.arg)!); return message.channel.send(res.message); }