#you can help here

1 messages · Page 1 of 1 (latest)

late lagoon
#

all values are correct and exactly what i need

static star
late lagoon
#

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?

static star
#

Kind of

late lagoon
#

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.

late lagoon
#

level 1 role

static star
#

Also I would like to point out the redundancy with the else return statement

late lagoon
#

its the id of the role

static star
late lagoon
#

yeap

static star
late lagoon
#

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?

static star
#

Log them and see if they are the same

late lagoon
#

i dont know whats the problem actually, there are multiple conditions idk which is being returned false

static star
#

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)