`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
d.js docs
d.js docs3y ago
• 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.
❄ Christmas Ralsei
Everything is above ↑
조아오
조아오3y ago
Try passing a PermissionBitField
d.js docs
d.js docs3y ago
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.
조아오
조아오3y ago
Also, I think global commands take up to an hour to update
jay
jay3y ago
no they don’t, it’s instant now
조아오
조아오3y ago
Oh, nice
Almeida
Almeida3y ago
you could also probably use the role preview thing with a role that doesnt have said permission
Want results from more Discord servers?
Add your server