Compare commits

..

No commits in common. "2586a84755e0438a86b5c7966bacca4e6bfaf1a6" and "db70d06dc418ec2c5b5989fd65cf6bcf27994e0e" have entirely different histories.

View File

@ -47,9 +47,7 @@ public class AutoVoiceChannel {
title = "Voice @count"; title = "Voice @count";
} }
title = title.replace("@count", Integer.toString(next)); title = title.replace("@count", Integer.toString(next));
voiceChannel.createCopy().setName(title).queue(newChannel -> { voiceChannel.createCopy().setName(title).setPosition(voiceChannel.getPosition()).queue(newChannel -> {
voiceChannel.getGuild().modifyVoiceChannelPositions().selectPosition(newChannel)
.moveBelow(voiceChannel).queue();
moveMembers(voiceChannel.getMembers(), (AudioChannel) newChannel); moveMembers(voiceChannel.getMembers(), (AudioChannel) newChannel);
createdChannels.put(next, newChannel.getId()); createdChannels.put(next, newChannel.getId());
}); });