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