question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property `detailsOfUser` of undefined

See original GitHub issue

Hi, as the title states, I am having an issue

I am using the following code message.server.detailsOfUser(user.id)

I read that for message.server to work I require discord.js 8.0.0 or higher, but I have discord.js 8.1.0

image

image

does anyone have any ideas, I just spent a good 6hrs rewriting my bot and don’t really fancy reverting back and wasting all that time

Thanks, MrV

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
MRVDOGcommented, Sep 3, 2016

okay so I got it working, reduced the amount of arguments the function requires, but had to add some code to get the Server object, but it all works again now

image

image

Thanks for your help, turns out there is nothing wrong with Discord.js, just me being an idiot haha

0reactions
amishshahcommented, Sep 3, 2016

Glad that it’s fixed!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'error' of undefined - Stack Overflow
I've tried so many times changing the variable name even copied from original source code but still, I don't understand why error property...
Read more >
Cannot read property 'user' of undefined · Issue #36 - GitHub
After sitting on the profile page for 2 seconds, the error occurs. I do not know if it is a settings issue but...
Read more >
How to Avoid Getting 'Cannot read property of undefined' in ...
Learn how you can avoid getting the famous 'Cannot read property of undefined' error in JavaScript with the logical OR operator.
Read more >
vRO Powershell Host Plugin Error - vRealize Orchestrator
Hi,. I'd like to enable VBS (Virtualization Based Security) on a VM, but the latest API doesn't yet support this yet (I am...
Read more >
Uncaught TypeError: Cannot read property 'find' of undefined
I am getting a TypeError, while it should not be as I believe I have the variables properly defined im creating a new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found