I am trying to do a simply paste a link in a particular channel and wait for the bot to send it again with message.
here in this example I should get:
hello image
but I am only getting hello and I even tried some different methods like changing
message.channel.send(`hello,${m.content}`)
the output comes with the URL and image, but I don't need the URL I only need the image and the text.
here is my part of the code.
const collector = message.channel.createMessageCollector({
filter,
max : 1 ,
time: 15000});
collector.on('collect', m => {
console.log(`Collected ${m.content}`);
});
collector.on('end', collected => {
console.log(`Collected ${collected.size} items`);
message.channel.send("hello",{files: collected.map(msg => msg.content)})
});
