Error using .getUser().isBot()
See original GitHub issueHello guys ! Until now, I was using this lines :
Member author = event.getMember();
if(!author.getUser().isBot()) {...}
But today, I have this error on the author.getUser().isBot() function :
[Fatal] [JDA]: java.lang.NullPointerException
at MainBot.onGuildMessageReceived(...)
I was on JDA 3.0.0 and seeing that problem I updated to 3.3.0 but the problem still here. Do you know why ? Can you help me ?
Thank a lot 😃
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
getUser() fails immediately after the login redirection - Questions
I'm trying to simply show the username once the user is logged in but i'm facing a strange behavior. If I call getUser()...
Read more >firebase-admin auth error while calling `getUser`, but work fine ...
My best bet as to what is going wrong is that the private key within the service account key file you are using...
Read more >isbot - npm
Good bot. Automated programs who visit websites in order to collect useful information. Web crawlers, site scrapers, stress testers, preview ...
Read more >User Object Cheat Sheet - ServiceNow Guru
getUser(), Returns a reference to the user object for the currently logged-in user. var userObject = gs.getUser();.
Read more >Get User Profile(v2) - User Not Found
I'm having the error that the user profile cannot be found even though the correct ... Enter the expression item() in get uesr...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It could have been an webhook message, as those don’t have members
This should instead be:
Webhook messages do not have Member objects.