So i want the bot ping someone, after member get some role
this is my code
client.on('guildMemberUpdate', async(member) => {
const memberRole = message.guild.roles.cache.find((role) => role.id ==='role id');//and this is for the role id, so the bot knows this role and the bot automatically pings someone to the channel i want
const Channel = member.guild.channels.cache.get('channel id') //and this channel id, i want the bot ping someone in this channel
Channel.send(`here lmao <@${member.id}> `)
.then((member)=> member.delete({
timeout: 10000 //and this i purposely made this to look like a ghost ping
}));
})
I know this code looks messy (: , so i’m asking for your help
Thank u!