From c241bcd297daacb41d452b17d11163bb2dd4e4b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Tue, 9 Jul 2019 09:49:37 +0200 Subject: [PATCH] me dumb --- event/listeners/message.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/event/listeners/message.js b/event/listeners/message.js index f75fa4c3..16f2cbe0 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); + } } } }