From 63cfd01076374adc8f9bca95c67c2a392bf085c8 Mon Sep 17 00:00:00 2001 From: Neko Life Date: Thu, 27 May 2021 23:06:03 +0000 Subject: [PATCH] Fix: small bug --- resources/emoteMessage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/emoteMessage.js b/resources/emoteMessage.js index 37e101a..093eab9 100644 --- a/resources/emoteMessage.js +++ b/resources/emoteMessage.js @@ -2,7 +2,7 @@ module.exports = function emoteMessage(client, content) { const emotes = content.match(/(?)/g); - if (emotes.length > 0) { + if (emotes?.length > 0) { let theEmotes = []; for (const emoteName of emotes) { let findThis = emoteName.slice(1, -1);