Skip to content

Commit

Permalink
Fix banned members
Browse files Browse the repository at this point in the history
  • Loading branch information
nea89o committed Mar 15, 2024
1 parent 45315d0 commit d1d5f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/moe/nea/gaybot/Gaybot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d1d5f84

Please sign in to comment.