Compare commits
2 Commits
db70d06dc4
...
2586a84755
Author | SHA1 | Date | |
---|---|---|---|
|
2586a84755 | ||
|
7478f68eef |
@ -47,7 +47,9 @@ 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).setPosition(voiceChannel.getPosition()).queue(newChannel -> {
|
voiceChannel.createCopy().setName(title).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());
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user