File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/main/java/net/javadiscord/javabot/systems/qotw/jobs Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -77,14 +77,16 @@ public void execute() throws SQLException {
7777 qotwConfig .getSubmissionChannel ().getThreadChannels ().size ())
7878 );
7979 for (ThreadChannel submission : qotwConfig .getSubmissionChannel ().getThreadChannels ()) {
80- notificationService .withGuild (guild ).sendToModerationLog (log ->
81- log .sendMessage (submission .getAsMention ())
82- .addActionRow (buildSubmissionSelectMenu (jda , submission .getIdLong ()))
83- );
8480 submission .getManager ().setName (SUBMISSION_PENDING + submission .getName ()).queue ();
8581 // remove the author
8682 final QOTWSubmission s = new QOTWSubmission (submission );
87- s .retrieveAuthor (author -> submission .removeThreadMember (author ).queue ());
83+ s .retrieveAuthor (author -> {
84+ submission .removeThreadMember (author ).queue ();
85+ notificationService .withGuild (guild ).sendToModerationLog (log ->
86+ log .sendMessage ("%s by %s" .formatted (submission .getAsMention (), author .getAsMention ()))
87+ .addActionRow (buildSubmissionSelectMenu (jda , submission .getIdLong ()))
88+ );
89+ });
8890 }
8991 if (qotwConfig .getSubmissionsForumChannel () == null ) continue ;
9092 asyncPool .execute (() -> {
You can’t perform that action at this time.
0 commit comments