fix send attachment

merge-requests/3/head
loicbersier 5 years ago
parent d40dff711f
commit a1216c0ca1

@ -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(embed, {files: [attach]});
}
return message.channel.send(text);
return message.channel.send(text), {files: [attach]};
}
}
}

Loading…
Cancel
Save