File tree Expand file tree Collapse file tree
application/src/main/java/org/togetherjava/tjbot/features/moderation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,13 +151,13 @@ private boolean handleWasAlreadyReportedMessage(MessageContextInteractionEvent e
151151
152152 private Optional <TextChannel > findModAuditLogChannel (MessageContextInteractionEvent event ) {
153153 Guild guild = Objects .requireNonNull (event .getGuild ());
154- Optional <TextChannel > modAuditLogChannel = Guilds .findTextChannel (guild , isModMailChannel );
155- if (modAuditLogChannel .isEmpty ()) {
154+ Optional <TextChannel > modMailChannel = Guilds .findTextChannel (guild , isModMailChannel );
155+ if (modMailChannel .isEmpty ()) {
156156 logger .warn (
157157 "Cannot find the designated mod audit log channel in guild '{}' with the pattern '{}'" ,
158158 guild .getId (), config .getModAuditLogChannelPattern ());
159159 }
160- return modAuditLogChannel ;
160+ return modMailChannel ;
161161 }
162162
163163 private MessageCreateAction reportToMods (Message message , TextChannel auditChannel ) {
You can’t perform that action at this time.
0 commit comments