You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked the branches or the maintainers' PRs for upcoming bug fixes.
Expected Behaviour
JDA should only check for the Manage_Threads permission, on edit/delete related perm checks on ThreadChannels, not also for Manage_Channel.
Tested needed permissions on regular Discord client & on non-JDA bots.
Code Example for Reproduction Steps
publicvoidthreadPermExample(ThreadChannelthreadChannel) {
// Here the .getManager() throws the the InsufficientPermissionException, effectively calling// net.dv8tion.jda.internal.managers.channel.ChannelManagerImpl#checkPermissionsthreadChannel.getManager().setArchived(false).complete();
// Here it's .delete()// net.dv8tion.jda.internal.entities.mixin.channel.middleman.GuildChannelMixin#deletethreadChannel.delete().queue();
}
Code for JDABuilder or DefaultShardManagerBuilder used
api = JDABuilder.createDefault(config.getAuthToken()).addEventListeners(
client,
newGuildListener(),
newThreadListener()
).enableIntents(GatewayIntent.GUILD_MEMBERS).build();
Exception or Error
net.dv8tion.jda.api.exceptions.InsufficientPermissionException: Cannot perform action due to a lack of Permission. Missing permission: MANAGE_CHANNEL
at net.dv8tion.jda.internal.managers.channel.ChannelManagerImpl.checkPermissions(ChannelManagerImpl.java:575)
at net.dv8tion.jda.internal.managers.channel.ChannelManagerImpl.<init>(ChannelManagerImpl.java:79)
at net.dv8tion.jda.internal.managers.channel.concrete.ThreadChannelManagerImpl.<init>(ThreadChannelManagerImpl.java:27)
at net.dv8tion.jda.internal.entities.ThreadChannelImpl.getManager(ThreadChannelImpl.java:280)
at dev.vrontis.quickbot.listener.GuildListener.lambda$onChannelUpdateArchived$0(GuildListener.java:38)
The text was updated successfully, but these errors were encountered:
General Troubleshooting
Expected Behaviour
JDA should only check for the Manage_Threads permission, on edit/delete related perm checks on ThreadChannels, not also for Manage_Channel.
Tested needed permissions on regular Discord client & on non-JDA bots.
Code Example for Reproduction Steps
Code for JDABuilder or DefaultShardManagerBuilder used
Exception or Error
The text was updated successfully, but these errors were encountered: