Skip to content

Commit 01a241e

Browse files
authored
Merge pull request #327 from Java-Discord/moon/qotw-no-auto-deletion
Removed automatic deletion of QOTW-Threads
2 parents ef4af86 + 374c9b7 commit 01a241e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/net/javadiscord/javabot/systems/qotw/submissions/SubmissionControlsManager.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ public void sendControls() {
7979
if (thread == null) return;
8080
// The Thread's starting message
8181
if (thread.getMessageCount() <= 1) {
82-
new QOTWNotificationService(guild)
83-
.sendSubmissionActionNotification(guild.getJDA().getSelfUser(), thread, SubmissionStatus.DELETED, "Empty Submission");
84-
DbHelper.doDaoAction(QOTWSubmissionRepository::new, dao -> dao.deleteSubmission(thread.getIdLong()));
85-
thread.delete().queue();
86-
return;
82+
thread.sendMessage("This submission would've been deleted as no messages were detected.").queue();
8783
}
8884
thread.getManager().setName(String.format("%s %s", SUBMISSION_PENDING, thread.getName())).queue();
8985
thread.sendMessage(config.getQOTWReviewRole().getAsMention())

0 commit comments

Comments
 (0)