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)
|
||||
return@get
|
||||
}
|
||||
|
||||
call.respond(HttpStatusCode.OK, DiscordGuildCache.getCachedGuilds(user.discord.toString())!!)
|
||||
val guild = DiscordGuildCache.getCachedGuilds(user.liveAlertGuild.toString())
|
||||
if(guild == null) {
|
||||
call.respond(HttpStatusCode.NotFound)
|
||||
return@get
|
||||
}
|
||||
call.respond(HttpStatusCode.OK, guild)
|
||||
return@get
|
||||
}
|
||||
get {
|
||||
|
Loading…
x
Reference in New Issue
Block a user