Skip to content

Commit 4d1781e

Browse files
authored
Release 1.0.2
Fixed Post Closure Bug
1 parent dce0551 commit 4d1781e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/mcsmanager/bot/util/CloseHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static void closeThread(ThreadChannel thread, Member invoker, Guild guild
8585
}
8686
}
8787

88-
if (!isOwner && !isModerator) {
88+
if (!isOwner || !isModerator) {
8989
reply.accept(EmbedUtils.createSimpleError("❌ Only the post creator or a moderator can close this post."));
9090
return;
9191
}
@@ -192,4 +192,4 @@ public void onButtonInteraction(ButtonInteractionEvent event) {
192192
.queue();
193193
}
194194
}
195-
}
195+
}

0 commit comments

Comments
 (0)