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);