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

View File

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