From 537f62e35001a8f645e7593e8ea34dea6895c0a0 Mon Sep 17 00:00:00 2001 From: Napster Date: Wed, 14 Mar 2018 07:40:50 +0100 Subject: [PATCH] Fix bot admins not recognized in private messages --- FredBoat/src/main/java/fredboat/event/EventListenerBoat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FredBoat/src/main/java/fredboat/event/EventListenerBoat.java b/FredBoat/src/main/java/fredboat/event/EventListenerBoat.java index 771df399a..4709a0b02 100644 --- a/FredBoat/src/main/java/fredboat/event/EventListenerBoat.java +++ b/FredBoat/src/main/java/fredboat/event/EventListenerBoat.java @@ -251,7 +251,7 @@ public void onPrivateMessageReceived(PrivateMessageReceivedEvent event) { } //quick n dirty bot admin / owner check - if (appConfig.getAdminIds().contains(event.getAuthor().getId()) + if (appConfig.getAdminIds().contains(event.getAuthor().getIdLong()) || DiscordUtil.getOwnerId(event.getJDA()) == event.getAuthor().getIdLong()) { //hack in / hardcode some commands; this is not meant to look clean