Missing Access Error when updating Guild Features

I want to update GuildFeature.InvitesDisabled I tried this:
await interaction.guild.edit({
features: [
GuildFeature.InvitesDisabled
]
})
await interaction.guild.edit({
features: [
GuildFeature.InvitesDisabled
]
})
and this:
await guild.disableInvites(true);
await guild.disableInvites(true);
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 list
No description
19 Replies
d.js toolkit
d.js toolkit•10h ago
- 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!
Lukas
Lukas•10h ago
[email protected] & node v22.7.0
Mark
Mark•10h ago
console.log(<guild>.members.me.permissions.serialize()) and post the output please
Lukas
Lukas•10h ago
{
CreateInstantInvite: true,
KickMembers: true,
BanMembers: true,
Administrator: true,
ManageChannels: true,
ManageGuild: true,
AddReactions: true,
ViewAuditLog: true,
PrioritySpeaker: true,
Stream: true,
ViewChannel: true,
SendMessages: true,
SendTTSMessages: true,
ManageMessages: true,
EmbedLinks: true,
AttachFiles: true,
ReadMessageHistory: true,
MentionEveryone: true,
UseExternalEmojis: true,
ViewGuildInsights: true,
Connect: true,
Speak: true,
MuteMembers: true,
DeafenMembers: true,
MoveMembers: true,
UseVAD: true,
ChangeNickname: true,
ManageNicknames: true,
ManageRoles: true,
ManageWebhooks: true,
ManageEmojisAndStickers: true,
ManageGuildExpressions: true,
UseApplicationCommands: true,
RequestToSpeak: true,
ManageEvents: true,
ManageThreads: true,
CreatePublicThreads: true,
CreatePrivateThreads: true,
UseExternalStickers: true,
SendMessagesInThreads: true,
UseEmbeddedActivities: true,
ModerateMembers: true,
ViewCreatorMonetizationAnalytics: true,
UseSoundboard: true,
CreateGuildExpressions: true,
CreateEvents: true,
UseExternalSounds: true,
SendVoiceMessages: true,
SendPolls: true
}
{
CreateInstantInvite: true,
KickMembers: true,
BanMembers: true,
Administrator: true,
ManageChannels: true,
ManageGuild: true,
AddReactions: true,
ViewAuditLog: true,
PrioritySpeaker: true,
Stream: true,
ViewChannel: true,
SendMessages: true,
SendTTSMessages: true,
ManageMessages: true,
EmbedLinks: true,
AttachFiles: true,
ReadMessageHistory: true,
MentionEveryone: true,
UseExternalEmojis: true,
ViewGuildInsights: true,
Connect: true,
Speak: true,
MuteMembers: true,
DeafenMembers: true,
MoveMembers: true,
UseVAD: true,
ChangeNickname: true,
ManageNicknames: true,
ManageRoles: true,
ManageWebhooks: true,
ManageEmojisAndStickers: true,
ManageGuildExpressions: true,
UseApplicationCommands: true,
RequestToSpeak: true,
ManageEvents: true,
ManageThreads: true,
CreatePublicThreads: true,
CreatePrivateThreads: true,
UseExternalStickers: true,
SendMessagesInThreads: true,
UseEmbeddedActivities: true,
ModerateMembers: true,
ViewCreatorMonetizationAnalytics: true,
UseSoundboard: true,
CreateGuildExpressions: true,
CreateEvents: true,
UseExternalSounds: true,
SendVoiceMessages: true,
SendPolls: true
}
here you go
Mark
Mark•10h ago
can you check that the community feature is enabled?
Lukas
Lukas•10h ago
on the server?
Mark
Mark•10h ago
yes, on the guild with the id in the error
d.js docs
d.js docs•10h ago
:property: Guild#features @14.16.3 An array of features available to this guild
Lukas
Lukas•10h ago
it isnt
Mark
Mark•10h ago
should be in that array that's likely why (maybe not)
Lukas
Lukas•9h ago
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 work
Mark
Mark•9h ago
Could be a rate limit But enabling community made it work?
Lukas
Lukas•9h ago
well kinda
Mark
Mark•9h ago
It stopped responding with the error though?
Lukas
Lukas•9h ago
yeah but it still doesnt work the intended way
Mark
Mark•9h ago
Like I said, it's likely a rate limit issue. I can't imagine that it's supposed to be toggled rapidly
Lukas
Lukas•9h ago
wouldnt it send an error when it's a rate limit issue? also pausing invites still works even if I rapid fire
Mark
Mark•9h ago
Nope, it just queues the request
Lukas
Lukas•9h ago
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
Want results from more Discord servers?
Add your server