Comparing IDs

Now I'm finally only committing after my server is up
This commit is contained in:
Norbi Peti 2016-12-22 21:22:55 +01:00
parent 599f853f19
commit e51c2fe32f

View file

@ -7,7 +7,7 @@ import sx.blah.discord.handle.impl.events.MessageReceivedEvent;
public class AutoUpdaterListener implements IListener<MessageReceivedEvent> {
@Override
public void handle(MessageReceivedEvent event) {
if (!event.getMessage().getChannel().equals(DiscordPlugin.officechannel))
if (!event.getMessage().getChannel().getID().equals(DiscordPlugin.officechannel))
return;
if (event.getMessage().getWebhookID() == null)
return;