Fix: small bug

This commit is contained in:
Neko Life 2021-05-27 23:06:03 +00:00
parent 4281c713cb
commit 63cfd01076

View file

@ -2,7 +2,7 @@
module.exports = function emoteMessage(client, content) {
const emotes = content.match(/(?<![<a]):\w{1,32}:(?!\d{17,19}>)/g);
if (emotes.length > 0) {
if (emotes?.length > 0) {
let theEmotes = [];
for (const emoteName of emotes) {
let findThis = emoteName.slice(1, -1);