`defaultMemberPermissions` not working
Hey, guys! That new command permission thing doesn't seem to work on servers. I set one of the commands' defaultMemberPermissions to "ManageMessages", yet after it gets added on my test server, it seems to be for @everyone…
discord.js version: 14.1.2
nodejs version: 16.14.2
9 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Everything is above ↑
Try passing a PermissionBitField
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.
Also, I think global commands take up to an hour to update
no they don’t, it’s instant now
Oh, nice
you could also probably use the role preview thing
with a role that doesnt have said permission