fix music channel

master
Julius de Jeu 2018-10-20 22:10:44 +02:00
parent 444ad204fb
commit 984a39cafa
1 changed files with 5 additions and 2 deletions

View File

@ -30,8 +30,11 @@ class TrackScheduler(val player: AudioPlayer, val guild: Guild, channel: VoiceCh
audio.sendingHandler = AudioPlayerSendHandler(player)
audio.openAudioConnection(channel)
musicChannel = guild.getTextChannelsByName("music", true).firstOrNull() ?: (guild.getTextChannelsByName("general", true).firstOrNull()
?: guild.defaultChannel!!)
musicChannel = guild.getTextChannelsByName("music-bot", true).firstOrNull()
?: (guild.getTextChannelsByName("music", true).firstOrNull()
?: (guild.getTextChannelsByName("bot", true).firstOrNull()
?: (guild.getTextChannelsByName("general", true).firstOrNull()
?: guild.defaultChannel!!)))
}