diff --git a/src/main/kotlin/moe/nea/gaybot/Gaybot.kt b/src/main/kotlin/moe/nea/gaybot/Gaybot.kt index 55cd668..1b0cc48 100644 --- a/src/main/kotlin/moe/nea/gaybot/Gaybot.kt +++ b/src/main/kotlin/moe/nea/gaybot/Gaybot.kt @@ -52,7 +52,7 @@ suspend fun main() { suspend fun performGitUpdate(): String { val legacy = RainbowManager.getLegacyRainbowName().toMutableList() for ((user, uuid) in BoosterNamesService.getAllUsers()) { - if (boostRoleId in moulberryBush.getMember(user).roleIds) { + if (boostRoleId in (moulberryBush.getMemberOrNull(user)?.roleIds ?: emptySet())) { if (uuid !in legacy) { legacy.add(uuid) }