From 1e615f35bc0cd2dfc38449169d7363552d26a878 Mon Sep 17 00:00:00 2001 From: CptShad Date: Sat, 1 May 2021 17:58:12 +0530 Subject: [PATCH] Fixed issues with seamless mode --- modules/Discord.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/Discord.js b/modules/Discord.js index 8a4ac79..08005c1 100644 --- a/modules/Discord.js +++ b/modules/Discord.js @@ -120,7 +120,8 @@ function MessageListener(Message) } else if (Config['discord']['SeamlessMode']) { - if (match[1].toLocaleLowerCase() == "dm") { + + if (match && match[1].toLocaleLowerCase() == "dm") { DMHandler(Message.author.username, match[2], match[3]); return; }