diff --git a/event/listeners/message.js b/event/listeners/message.js index d87e3a9..0896017 100644 --- a/event/listeners/message.js +++ b/event/listeners/message.js @@ -71,7 +71,6 @@ class messageListener extends Listener { attach = text.split(/(\[attach:.*?])/); for (let i = 0, l = attach.length; i < l; i++) { if (attach[i].includes('[attach:')) { - attach = attach[i].replace(' ', ''); attach = attach[i].replace('[attach:', '').slice(0, -1); i = attach.length; } @@ -95,7 +94,6 @@ class messageListener extends Listener { for (let i = 0, l = image.length; i < l; i++) { if (image[i].includes('[embedImage:')) { - image = image[i].replace(' ', ''); image = image[i].replace('[embedImage:', '').slice(0, -1); text = text.replace(/(\[embedimage:.*?])/g, ''); i = image.length; @@ -108,7 +106,6 @@ class messageListener extends Listener { for (let i = 0, l = thumbnail.length; i < l; i++) { if (thumbnail[i].includes('[embedThumbnail:')) { - thumbnail = thumbnail[i].replace(' ', ''); thumbnail = thumbnail[i].replace('[embedThumbnail:', '').slice(0, -1); text = text.replace(/(\[embedThumbnail:.*?])/g, ''); i = thumbnail.length;