client.on('messageReactionAdd', async (reaction, user) => {
const role = guild.roles.cache.find((role) => role.name === 'specific role')
if (reaction.emoji.id == '759643335043448834' && reaction.author.roles.has(role.id))
return
else await reaction.message.delete({timeout:2500})
});
so right now this is giving me a error saying guild is not defined. I want it to remove a specific custom emoji when a user doesn't have a specific role I am kind of confused what to do anyone know the issue?