mirror of
https://github.com/Shimeo98/DiscordWhitelisterSpigot.git
synced 2024-12-01 07:03:36 +01:00
Only filter out self, not other bots/webhooks
This commit is contained in:
parent
96701b44d4
commit
24afba37a7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user