Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Fix bot admins not recognized in private messages
Browse files Browse the repository at this point in the history
  • Loading branch information
schnapster committed Mar 14, 2018
1 parent 601bfbe commit 537f62e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 537f62e

Please sign in to comment.