Fixed stuff

This commit is contained in:
2025-11-11 22:42:14 +01:00
parent e3218af147
commit ec9f14c9e7
4 changed files with 20 additions and 5 deletions

2
bot.js
View File

@@ -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] });