mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
asdf16
This commit is contained in:
parent
7d12985801
commit
5498135257
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user