images send as file not as link

This commit is contained in:
loicbersier 2018-10-01 11:04:01 +02:00
parent 87cefddd02
commit 47518307ca

View file

@ -11,8 +11,8 @@ module.exports = class DespacitoCommand extends Command {
async run(message) {
message.say("DES\nPA\nCITO");
message.say("https://images-eu.ssl-images-amazon.com/images/I/619fzjO1rmL._SS500.jpg");
message.say("https://cdn.dopl3r.com/memes_files/despacito-eS6Lm.jpg");
message.channel.send({files: ["https://images-eu.ssl-images-amazon.com/images/I/619fzjO1rmL._SS500.jpg"]});
message.channel.send({files: ["https://cdn.dopl3r.com/memes_files/despacito-eS6Lm.jpg"]});
message.say("https://www.youtube.com/watch?v=kJQP7kiw5Fk");
}
};