You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.
I am trying to receive a User object with IDs from the member list of my server because I need the additional information from the User object. However, methods including the User object are very poorly documented and the getUser() function from the client always returns undefined.
This is a little help function that I am using. I changed the memberID part with a valid userID to make sure that it's not a problem about getting the right ID. bot is a Discord.Client object.
function get_user(memberID) { var user = bot.getUser({userID: "170974398587731968"}); return user; }
The problem is that I always get undefined and there is no error message or warning about permissions. The documentation also doesn't say if the getUser function is a callback function.
I am pretty sure that it's probably just a small problem. But I can't find the answer and would appreciate some help. Thanks in advance.
The text was updated successfully, but these errors were encountered:
I am trying to receive a User object with IDs from the member list of my server because I need the additional information from the User object. However, methods including the User object are very poorly documented and the getUser() function from the client always returns undefined.
This is a little help function that I am using. I changed the memberID part with a valid userID to make sure that it's not a problem about getting the right ID. bot is a Discord.Client object.
function get_user(memberID) { var user = bot.getUser({userID: "170974398587731968"}); return user; }
The problem is that I always get undefined and there is no error message or warning about permissions. The documentation also doesn't say if the getUser function is a callback function.
I am pretty sure that it's probably just a small problem. But I can't find the answer and would appreciate some help. Thanks in advance.
The text was updated successfully, but these errors were encountered: