File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/net/javadiscord/javabot/listener Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1616 */
1717@ RequiredArgsConstructor
1818public class QOTWSubmissionListener extends ListenerAdapter {
19- private final BotConfig config ;
19+ private final BotConfig botConfig ;
2020
2121 @ Override
2222 public void onMessageReceived (@ NotNull MessageReceivedEvent event ) {
2323 if (!event .isFromGuild () || !event .isFromThread () || event .getChannelType () != ChannelType .GUILD_PRIVATE_THREAD ) {
2424 return ;
2525 }
26- QOTWConfig qotwConfig = config .get (event .getGuild ()).getQotwConfig ();
26+ QOTWConfig qotwConfig = botConfig .get (event .getGuild ()).getQotwConfig ();
2727 ThreadChannel thread = event .getChannel ().asThreadChannel ();
2828 // TODO: fix check
2929 if (thread .getParentChannel ().getIdLong () != qotwConfig .getSubmissionChannelId ()) {
You can’t perform that action at this time.
0 commit comments