Skip to content

Commit b41b118

Browse files
config -> botConfig
1 parent e0d4a41 commit b41b118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/javadiscord/javabot/listener/QOTWSubmissionListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
*/
1717
@RequiredArgsConstructor
1818
public 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()) {

0 commit comments

Comments
 (0)