mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
fix discord alert.
- Number to Long change.
This commit is contained in:
parent
a733f56d8c
commit
ef983cbe22
@ -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?>) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user