Hello there have you ever looked for a package with images well here it can be found!
Example:
const Discord = require('discord.js');
const ptp = require('phantom-test-package');
const client = new Discord.Client();
client.on('ready', () => {
console.log('online');
})
client.on('message', (message) => {
if(message.content == '.image') {
let link = ptp.link();
message.channel.send(link);
}
});
client.login('')
Welcome Example: First You Need To GuildMemberAdd Event.
client.on('guildMemberAdd', (member) => {
ptp.image(member.user.tag, member.user.displayAvatarURL({format:'png'})).then((img) => {
let attachment = new Discord.MessageAttachment(img, 'img.png');
client.channels.cache.get("channel ID").send(attachment)
})
})