Fix wrong chanel select
This commit is contained in:
parent
7478f68eef
commit
2586a84755
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user