fix discord alert.

- Number to Long change.
This commit is contained in:
dalbodeule 2024-08-22 16:29:53 +09:00
parent a733f56d8c
commit ef983cbe22
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65

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?>) {