Skip to content

Commit e865e65

Browse files
committed
remove hugs in suggestion channels
Replacing fucks with hugs would cause incompatibilities with the suggestion listener. However, fucks are still replaced with hugs in suggestion threads.
1 parent 7aabba7 commit e865e65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public void onMessageReceived(@Nonnull MessageReceivedEvent event) {
3232
if (event.isWebhookMessage()) {
3333
return;
3434
}
35+
if (event.getChannel().getIdLong()==Bot.config.get(event.getGuild()).getModeration().getSuggestionChannelId()) {
36+
return;
37+
}
3538
TextChannel tc = null;
3639
if (event.isFromType(ChannelType.TEXT)) {
3740
tc = event.getTextChannel();

0 commit comments

Comments
 (0)