This commit is contained in:
dalbodeule 2024-08-14 21:23:53 +09:00
parent 7d12985801
commit 5498135257
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65

View File

@ -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 {