Skip to content

Commit 905787a

Browse files
Merge pull request #312 from Java-Discord/moon/qotw-fix
Fix QOTW Channel allowing people to send messages
2 parents adc2b4a + 07e30fd commit 905787a

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)