-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User ID #1
Comments
If using a username it would look something like this....
|
Thanks! How would I get a name from an id? |
The same way, like this...
|
If you will log the entire result variable you can see the data that is accessible using result.fieldname Hope this helps... |
Thanks! Great job on this module. I will close this unless I have any issues |
Thanks for the feedback and glad I could help. |
Hmm.
returns result as null |
For your room? Write client.users to the console and see if you see your userid in the output. Example:
|
That worked! |
Thanks! |
It seems like the user IDs I used were invalid. |
Are you may have been calling it before the data was available in the cache. Glad you got it working. |
It looks like I was looking for message.user, instead of message.bot_id |
How could I get a user name from a user ID, and a user id from a username? The getUser function returns null. Thanks!
The text was updated successfully, but these errors were encountered: