Comparing IDs
Now I'm finally only committing after my server is up
This commit is contained in:
parent
599f853f19
commit
e51c2fe32f
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ import sx.blah.discord.handle.impl.events.MessageReceivedEvent;
|
||||||
public class AutoUpdaterListener implements IListener<MessageReceivedEvent> {
|
public class AutoUpdaterListener implements IListener<MessageReceivedEvent> {
|
||||||
@Override
|
@Override
|
||||||
public void handle(MessageReceivedEvent event) {
|
public void handle(MessageReceivedEvent event) {
|
||||||
if (!event.getMessage().getChannel().equals(DiscordPlugin.officechannel))
|
if (!event.getMessage().getChannel().getID().equals(DiscordPlugin.officechannel))
|
||||||
return;
|
return;
|
||||||
if (event.getMessage().getWebhookID() == null)
|
if (event.getMessage().getWebhookID() == null)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue