Skip to content

Commit 07e30fd

Browse files
committed
Fix QOTW Channel allowing people to send messages
1 parent adc2b4a commit 07e30fd

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
@@ -48,7 +48,7 @@ protected void execute(JobExecutionContext context, JDA jda) throws JobExecution
4848
QOTWConfig qotw = config.getQotw();
4949
qotw.getSubmissionChannel().getThreadChannels().forEach(thread -> thread.getManager().setLocked(true).setArchived(true).queue());
5050
qotw.getSubmissionChannel().getManager()
51-
.putRolePermissionOverride(guild.getIdLong(), Set.of(Permission.VIEW_CHANNEL, Permission.MESSAGE_SEND_IN_THREADS), Collections.emptySet())
51+
.putRolePermissionOverride(guild.getIdLong(), Set.of(Permission.VIEW_CHANNEL, Permission.MESSAGE_SEND_IN_THREADS), Collections.singleton(Permission.MESSAGE_SEND))
5252
.queue();
5353
if (question.getQuestionNumber() == null) {
5454
question.setQuestionNumber(repo.getNextQuestionNumber());

0 commit comments

Comments
 (0)