Skip to content

Commit

Permalink
Fix bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
InterfaceGUI authored Apr 17, 2023
1 parent 50d7bd5 commit 54a920d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@ client.on(Events.MessageCreate, async message => {

client.on(Events.GuildMemberAdd, async member => {

const avatar = member.displayAvatarURL({ extension: 'png' })
const avatar = member.user.displayAvatarURL({ extension: 'png' })
const imagebuffer = await wCard.CreateImageCard(
bg,
avatar,
`${config.WelcomeText}`,
member.username,
member.user.username,
`${config.memberCountText}: ${member.guild.memberCount}`
)

const channel = await client.guilds.cache.get(config.GuildID).channels.fetch(config.WelcomeChannel)
await channel.send({files: [imagebuffer] });

const channel2 = await client.guilds.cache.get(config.GuildID).channels.fetch(config.infoChannel)
await channel2.send({content:`<@${member.id}>`});
await channel2.send({content:`<@${member.user.id}>`});

});
function sleep(ms) {
Expand Down

0 comments on commit 54a920d

Please sign in to comment.