Skip to content

Dynamic Voice Channel Sync Issue #1399

@ankitsmt211

Description

@ankitsmt211

Describe the bug

Exception being raised when joining/leaving VC

Encountered error while processing success consumer
net.dv8tion.jda.api.exceptions.InsufficientPermissionException: Cannot sync channel with parent due to permission escalation issues. One of the overrides would set MANAGE_PERMISSIONS or a permission that the bot does not have. This is not possible without explicitly having MANAGE_PERMISSIONS on this channel or ADMINISTRATOR on a role.

at net.dv8tion.jda.internal.managers.channel.ChannelManagerImpl.sync(ChannelManagerImpl.java:350)
at net.dv8tion.jda.internal.managers.channel.concrete.VoiceChannelManagerImpl.sync(VoiceChannelManagerImpl.java:23)
at org.togetherjava.tjbot.features.voicechat.DynamicVoiceChat.lambda$archiveDynamicVoiceChannel$1(DynamicVoiceChat.java:173)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at org.togetherjava.tjbot.features.voicechat.DynamicVoiceChat.archiveDynamicVoiceChannel(DynamicVoiceChat.java:171)
at org.togetherjava.tjbot.features.voicechat.DynamicVoiceChat.lambda$handleVoice...

Expected behavior

To Reproduce

When join/leave action is being spammed in VC

Screenshots

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions