Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Fix wrong chanel select
Browse files Browse the repository at this point in the history
  • Loading branch information
sclement committed Dec 28, 2023
1 parent 7478f68 commit 2586a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/Broken/Tools/AutoVoiceChannel.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void join(AudioChannel voiceChannel) {
}
title = title.replace("@count", Integer.toString(next));
voiceChannel.createCopy().setName(title).queue(newChannel -> {
voiceChannel.getGuild().modifyVoiceChannelPositions().selectPosition(voiceChannel)
voiceChannel.getGuild().modifyVoiceChannelPositions().selectPosition(newChannel)
.moveBelow(voiceChannel).queue();
moveMembers(voiceChannel.getMembers(), (AudioChannel) newChannel);
createdChannels.put(next, newChannel.getId());
Expand Down

0 comments on commit 2586a84

Please sign in to comment.