fix music channel
This commit is contained in:
parent
444ad204fb
commit
984a39cafa
|
@ -30,8 +30,11 @@ class TrackScheduler(val player: AudioPlayer, val guild: Guild, channel: VoiceCh
|
||||||
audio.sendingHandler = AudioPlayerSendHandler(player)
|
audio.sendingHandler = AudioPlayerSendHandler(player)
|
||||||
audio.openAudioConnection(channel)
|
audio.openAudioConnection(channel)
|
||||||
|
|
||||||
musicChannel = guild.getTextChannelsByName("music", true).firstOrNull() ?: (guild.getTextChannelsByName("general", true).firstOrNull()
|
musicChannel = guild.getTextChannelsByName("music-bot", true).firstOrNull()
|
||||||
?: guild.defaultChannel!!)
|
?: (guild.getTextChannelsByName("music", true).firstOrNull()
|
||||||
|
?: (guild.getTextChannelsByName("bot", true).firstOrNull()
|
||||||
|
?: (guild.getTextChannelsByName("general", true).firstOrNull()
|
||||||
|
?: guild.defaultChannel!!)))
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue