#I don't get why is this falling under the allowedroleID category but not allowedroleIDMember categor

13 messages · Page 1 of 1 (latest)

hushed krakenBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
fresh gulch
#

are your ifs supposed to be nested

strange flicker
#

since the first if is a check

fresh gulch
#

then make sure both those properties are defined

strange flicker
#

it works for discord mod but not memebers
but im sure it falls under the members category
if I remove the discord mod role from myself
it doesn't work
but if i added
it can again

fresh gulch
#

according to your logic, you need both the allowedroleID and allowedroleIDMember role

#

is that correct

strange flicker
#

yes

#

allowedroleID is the ID of discord mod role

#

and allowedroleIDMember is the ID of member role

#

so the permission to run commands are diff