diff --git a/event/listeners/message.js b/event/listeners/message.js index f75fa4c..16f2cbe 100644 --- a/event/listeners/message.js +++ b/event/listeners/message.js @@ -158,11 +158,19 @@ class messageListener extends Listener { .setTimestamp(); + if (attach) { + return message.channel.send(embed, {files: [attach]}); + } else { + return message.channel.send(embed); - return message.channel.send(embed, {files: [attach]}); + } } - return message.channel.send(text, {files: [attach]}); + if (attach) { + return message.channel.send(text, {files: [attach]}); + } else { + return message.channel.send(text); + } } } }