Missing Access Error when updating Guild Features
I want to update
GuildFeature.InvitesDisabled
I tried this:
and this:
But I always get this error:
(See attachment)
My bot has all permissions it can have on the server and I enabled application.commands
. The bots role even sits at the top of the role list19 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- 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![email protected]
&
node v22.7.0
console.log(<guild>.members.me.permissions.serialize())
and post the output please
here you go
can you check that the community feature is enabled?
on the server?
yes, on the guild with the id in the error
it isnt
should be in that array
that's likely why
(maybe not)
okay so disabling invites works now
but if I disable them by hand and then tell the bot to re-enable them like so:
await guild.disableInvites(false)
nothing happens
I dont get an error, it just doesnt workCould be a rate limit
But enabling community made it work?
well kinda
It stopped responding with the error though?
yeah
but it still doesnt work the intended way
Like I said, it's likely a rate limit issue. I can't imagine that it's supposed to be toggled rapidly
wouldnt it send an error when it's a rate limit issue?
also pausing invites still works even if I rapid fire
Nope, it just queues the request
just unpausing doesnt work
ah okay
well what do I do if it doesnt work. I mean the feature is still in beta
the error is back again. Same error and I didnt change anything. Community is enabled
ah nevermind
community was disabled again