mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2026-10-25 17:11:16 +09:00
asdf16
This commit is contained in:
1 file changed
+6
-2
@@ -32,8 +32,12 @@ fun Route.apiDiscordRoutes() {
|
|||||||
call.respond(HttpStatusCode.NotFound)
|
call.respond(HttpStatusCode.NotFound)
|
||||||
return@get
|
return@get
|
||||||
}
|
}
|
||||||
|
val guild = DiscordGuildCache.getCachedGuilds(user.liveAlertGuild.toString())
|
||||||
call.respond(HttpStatusCode.OK, DiscordGuildCache.getCachedGuilds(user.discord.toString())!!)
|
if(guild == null) {
|
||||||
|
call.respond(HttpStatusCode.NotFound)
|
||||||
|
return@get
|
||||||
|
}
|
||||||
|
call.respond(HttpStatusCode.OK, guild)
|
||||||
return@get
|
return@get
|
||||||
}
|
}
|
||||||
get {
|
get {
|
||||||
|
|||||||
Reference in new issue
Block a user