channels.create().then() runs before the result is acquired
Trying to figure out why my query is getting ran before the result is acquired here:
appreciate any help
7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPwhat makes you think that?
this error
the result.id does give something from what it seems but it just says its undefined
could you log
result
in the .then
handler and show the output?it shows the id
err, what version of djs is this?
14.15.3
ty goodsir :prayge:
needed to mark the above function as async and set it to await