Merge pull request #91 from dalbodeule/develop

apiDiscordRoutes fix. (11x)
This commit is contained in:
JinU Choi
2024-08-15 10:41:59 +09:00
committed by GitHub

View File

@@ -31,6 +31,7 @@ object DiscordGuildCache {
guild = cache[guildId] guild = cache[guildId]
} }
try { try {
if(guild == null) { return null }
if (guild!!.guild.roles.isEmpty()) { if (guild!!.guild.roles.isEmpty()) {
guild!!.guild.roles = fetchGuildRoles(guildId) guild!!.guild.roles = fetchGuildRoles(guildId)
} }