mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
apiDiscordRoutes fix. (11x)
- some logic changed.
This commit is contained in:
parent
355e07bf21
commit
c0e65ad771
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user