Fixed stuff
This commit is contained in:
2
bot.js
2
bot.js
@@ -42,7 +42,7 @@ const launch = async () => {
|
||||
username: username,
|
||||
});
|
||||
|
||||
const attachment = new AttachmentBuilder(result, { name: 'namecard.png' });
|
||||
const attachment = new AttachmentBuilder(Buffer.from(result.result), { name: 'namecard.png' });
|
||||
|
||||
const channel = await member.guild.channels.fetch(data.welcomeChannelID);
|
||||
await channel.send({ files: [attachment] });
|
||||
|
||||
Reference in New Issue
Block a user