mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
asdf
This commit is contained in:
parent
9ab004d646
commit
40f1df7ba6
@ -131,9 +131,9 @@ val server = embeddedServer(Netty, port = 8080, ) {
|
||||
}.map { it.id }
|
||||
))
|
||||
DiscordGuildCache.addGuild(guilds.associate {
|
||||
it.id to CachedGuilds(
|
||||
Guild(it.id, it.name, it.icon, it.banner)
|
||||
)
|
||||
println("${it.id} ${it.name}")
|
||||
|
||||
it.id to Guild(it.id, it.name, it.icon, it.banner)
|
||||
})
|
||||
|
||||
redirects[principal.state]?.let { redirect ->
|
||||
|
@ -70,8 +70,10 @@ object DiscordGuildCache {
|
||||
}
|
||||
}
|
||||
|
||||
fun addGuild(guilds: Map<String, CachedGuilds>) {
|
||||
cache.putAll(guilds)
|
||||
fun addGuild(guilds: Map<String, Guild>) {
|
||||
cache.putAll(guilds.map {
|
||||
it.key to CachedGuilds(it.value, Instant.now())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user