mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
Merge pull request #95 from dalbodeule/develop
apiDiscordRoutes fix. (17x)
This commit is contained in:
commit
b2f4549e7f
@ -310,7 +310,7 @@ enum class ChannelType(val value: Int) {
|
||||
@Serializable
|
||||
data class GuildChannel(
|
||||
val id: String,
|
||||
val type: ChannelType,
|
||||
val type: Int,
|
||||
val name: String?
|
||||
)
|
||||
|
||||
|
@ -133,7 +133,7 @@ object DiscordGuildCache {
|
||||
return mutableListOf()
|
||||
}
|
||||
|
||||
val parsed = result.body<List<GuildChannel>>().filter { it.type == ChannelType.GUILD_TEXT }.toMutableList()
|
||||
val parsed = result.body<List<GuildChannel>>().filter { it.type == ChannelType.GUILD_TEXT.value }.toMutableList()
|
||||
println(result.bodyAsText())
|
||||
|
||||
parsed.forEach { println("${it.name} - ${it.id}") }
|
||||
|
Loading…
x
Reference in New Issue
Block a user