From ef983cbe2293ab89078b0a1f64a531bfbdec1ad5 Mon Sep 17 00:00:00 2001 From: dalbodeule <11470513+dalbodeule@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:29:53 +0900 Subject: [PATCH] fix discord alert. - Number to Long change. --- .../kotlin/space/mori/chzzk_bot/chatbot/discord/Discord.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/discord/Discord.kt b/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/discord/Discord.kt index 4214fbb..6ef8102 100644 --- a/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/discord/Discord.kt +++ b/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/discord/Discord.kt @@ -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) {