Skip to content

Commit 3f9783f

Browse files
Added setArchived as setLocked seems to be broken
1 parent 20a80d7 commit 3f9783f

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/net/javadiscord/javabot/systems/qotw

1 file changed

+1
-1
lines changed

src/main/java/net/javadiscord/javabot/systems/qotw/QOTWJob.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected void execute(JobExecutionContext context, JDA jda) throws JobExecution
4545
} else {
4646
QOTWQuestion question = nextQuestion.get();
4747
QOTWConfig qotw = config.getQotw();
48-
qotw.getSubmissionChannel().getThreadChannels().forEach(thread -> thread.getManager().setLocked(true).queue());
48+
qotw.getSubmissionChannel().getThreadChannels().forEach(thread -> thread.getManager().setLocked(true).setArchived(true).queue());
4949
qotw.getSubmissionChannel().getManager()
5050
.putRolePermissionOverride(guild.getIdLong(), Collections.singleton(Permission.MESSAGE_SEND_IN_THREADS), Collections.emptySet())
5151
.queue();

0 commit comments

Comments
 (0)