fix send attachment

This commit is contained in:
loicbersier 2019-07-09 04:54:56 +02:00
parent d40dff711f
commit a1216c0ca1

View file

@ -158,13 +158,11 @@ class messageListener extends Listener {
.setTimestamp();
if (attach) {
return message.channel.send(embed, {files: [attach]});
} else {
return message.channel.send(embed);
}
}
return message.channel.send(text);
return message.channel.send(text), {files: [attach]};
}
}
}