Fix issue if auto voice channel title is not defined
This commit is contained in:
parent
74f8fb2306
commit
eb0c1cf083
@ -41,6 +41,9 @@ public class AutoVoiceChannel {
|
||||
VoiceChannel newChannel = voiceChannel.createCopy().complete();
|
||||
int next = getNextNumber();
|
||||
String title = pref.getAutoVoiceChannelTitle();
|
||||
if (title.isEmpty()){
|
||||
title = "Voice @count";
|
||||
}
|
||||
title = title.replace("@count", Integer.toString(next));
|
||||
newChannel.getManager().setName(title).setPosition(voiceChannel.getPosition()).queue();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user