fix music channel

This commit is contained in:
Julius de Jeu 2018-10-20 22:10:44 +02:00
parent 444ad204fb
commit 984a39cafa

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!!)))
}