Only filter out self, not other bots/webhooks

This commit is contained in:
Joe Shimell 2021-03-03 14:09:40 +00:00
parent 96701b44d4
commit 24afba37a7

View File

@ -320,7 +320,7 @@ public class DiscordClient extends ListenerAdapter
if (!Arrays.asList(targetTextChannels).contains(messageReceivedEvent.getTextChannel().getId()))
return;
if (messageReceivedEvent.getAuthor().isBot())
if(messageReceivedEvent.getAuthor().getIdLong() == javaDiscordAPI.getSelfUser().getIdLong())
return;
String messageContents = messageReceivedEvent.getMessage().getContentRaw();