Closed nishi7409 closed 6 years ago
You are not awaiting the getIdFromUsername
promise:
const blurb = await rbx.getStatus(await rbx.getIdFromUsername(args[1]));
I copied your code exactly, yet I get that error.
I ran, !status EliteSilentSword
.
Works fine for me. Verify args[1] is a string or post code here.
Ah, I see what the problem was.
a) I was updating the wrong portion of the code. b) What was before triggered what was happening.
Thanks though. 👍
Goal: To get the status of a user such as when the user runs
!status EliteSilentsword
.Problem:
const blurb1 = await rbx.getStatus(rbx.getIdFromUsername(args[1]));
When I run something such as,
!status EliteSilentSword
, it outputs that the user doesn't exist. Picture - http://prntscr.com/hvsharWhen I do something along the lines of...
const blurb1 = await rbx.getStatus(args[1]);
And run,
!status 60684854
, it works perfectly fine!This is an issue because I don't want a user to be finding their userID even though its simple enough to do. They should just be able to run,
!status username
, and it should pop up.