Merge pull request #111 from dalbodeule/develop

fix discord alert.
This commit is contained in:
JinU Choi 2024-08-22 16:33:34 +09:00 committed by GitHub
commit 8e1e472bda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,8 +31,8 @@ class Discord: ListenerAdapter() {
companion object { companion object {
lateinit var bot: JDA lateinit var bot: JDA
internal fun getChannel(guildId: Number, channelId: Number): TextChannel? { internal fun getChannel(guildId: Long, channelId: Long): TextChannel? {
return bot.getGuildById(guildId.toLong())?.getTextChannelById(channelId.toLong()) return bot.getGuildById(guildId)?.getTextChannelById(channelId)
} }
fun sendDiscord(user: User, status: IData<IStreamInfo?>) { fun sendDiscord(user: User, status: IData<IStreamInfo?>) {