Fix wrong chanel select

This commit is contained in:
sclement 2023-12-28 17:08:31 +01:00
parent 7478f68eef
commit 2586a84755

View File

@ -48,7 +48,7 @@ public class AutoVoiceChannel {
}
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());