#PermissionOverwrites

20 messages · Page 1 of 1 (latest)

patent vaultBOT
#
  • 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!
  • Marked as resolved by OP
modest skiff
#

here's the code

#

and now i'll share the console error

#

here's the error

wind juniper
#

can we see the code that the error fires on

modest skiff
#

sure

turbid mica
#

There is no enum called Pemrissuins

wind juniper
#

You can use PermissionsBitField

turbid mica
#

If you're using 14.14.1, thats invalid code

harsh iceBOT
#

class PermissionsBitField (extends BitField)
Data structure that makes it easy to interact with a permission bitfield. All GuildMembers have a set of permissions in their guild, and each channel in the guild may also have PermissionOverwrites for the member that override their default permissions.

wind juniper
#

I believe this would work ^

harsh iceBOT
turbid mica
#

create takes a single param

modest skiff
#

I got this other error

wind juniper
modest skiff
#

same of before i guess

wind juniper
#

you pass two parameters into the function: your name field should just be a part of the options by using name: (name),