Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Get status not working? #102

Closed
ghost opened this issue Jun 7, 2018 · 6 comments
Closed

Get status not working? #102

ghost opened this issue Jun 7, 2018 · 6 comments

Comments

@ghost
Copy link

ghost commented Jun 7, 2018

So I took the code from some other thread that was answered..

And it comes up with this error:

await is only valid in async function

const status = await rbx.getStatus(await rbx.getIdFromUsername(username));

@suufi
Copy link
Contributor

suufi commented Jun 8, 2018

Before copy & pasting anything you see on the internet, be sure you understand what it does first. Read this article to understand more about async/await: https://anidiots.guide/other-guides/async-await.

@ghost
Copy link
Author

ghost commented Jun 9, 2018

Still confused..

@ghost
Copy link
Author

ghost commented Jun 9, 2018

is rbx.getStatus not a async function?

@suufi
Copy link
Contributor

suufi commented Jun 9, 2018 via email

@sentanos
Copy link
Owner

sentanos commented Jun 9, 2018 via email

@ghost
Copy link
Author

ghost commented Jun 9, 2018

so I have to put it in a async function.. ohhhh ok.

@ghost ghost closed this as completed Jun 10, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants