Code for JDABuilder or DefaultShardManagerBuilder used
builder
.enableIntents(GatewayIntent.GUILD_MEMBERS, GatewayIntent.MESSAGE_CONTENT)
.setMemberCachePolicy(MemberCachePolicy.ALL)
.setEventManagerProvider(id -> eventManager)
.setBulkDeleteSplittingEnabled(false)
.setActivity(Activity.playing("Picking Teams"))
.disableCache(CacheFlag.ACTIVITY, CacheFlag.MEMBER_OVERRIDES, CacheFlag.VOICE_STATE);
// Disable member chunking on startup
builder.setChunkingFilter(ChunkingFilter.NONE);
// Disable presence updates and typing events
builder.disableIntents(GatewayIntent.GUILD_PRESENCES, GatewayIntent.GUILD_MESSAGE_TYPING);
// Consider guilds with more than 50 members as "large".
// Large guilds will only provide online members in their setup and thus reduce bandwidth if chunking is disabled.
builder.setLargeThreshold(50);
Exception or Error
[ForkJoinPool.commonPool-worker-1] ERROR RestAction - Encountered error while processing success consumer
net.dv8tion.jda.api.exceptions.InsufficientPermissionException: Cannot perform action due to a lack of Permission. Missing permission: MANAGE_CHANNEL
at net.dv8tion.jda.internal.entities.channel.mixin.middleman.GuildChannelMixin.checkPermission(GuildChannelMixin.java:64)
at net.dv8tion.jda.internal.entities.channel.mixin.middleman.GuildChannelMixin.checkPermission(GuildChannelMixin.java:56)
at net.dv8tion.jda.internal.entities.channel.mixin.middleman.GuildChannelMixin.checkCanManage(GuildChannelMixin.java:71)
at net.dv8tion.jda.internal.entities.channel.mixin.middleman.GuildChannelMixin.delete(GuildChannelMixin.java:43)
General Troubleshooting
Version of JDA
5.0.0-beta.23
Expected Behaviour
Delete the voice channel
Code Example for Reproduction Steps
Code for JDABuilder or DefaultShardManagerBuilder used
Exception or Error