#you can help here
1 messages · Page 1 of 1 (latest)
member too?
member is a GuildMember object
someone else said that to fetch a persons role i need to get the guildmember object and get their role
you udnerstand what im trying to do here, right?
Kind of
so like there is a attachment, people react on it. but i dont want them to react on it if they dont have the level 1 role.
what is voterRole?
level 1 role
Also I would like to point out the redundancy with the else return statement
its the id of the role
So it's the ID as a string?
yeap
What is reaction.emoji.id and what is emojiID
so like reaction.emoji.id is supposed to be the id of the specific reaction emoji it needs to remove
emojiID is the id as a string of that specific emoji
its a guild emoji btw.. does that cause problems?
Log them and see if they are the same
they are
i dont know whats the problem actually, there are multiple conditions idk which is being returned false
Show me all the logs like this:
variableName: value
Log everything in the if statement (member.roles.cache.has(voterRole), reaction.message.channelId, startFromThisID, emojiID)