#Can someone help me pls
39 messages · Page 1 of 1 (latest)
didn't resolve the promise from import()
how can i resolve it?
Tag suggestion for @silent kindle:
Resources to understand Promise:
• MDN: learn more
• Guide: learn more
• JavaScript info: learn more
Resources to understand Promise:
• MDN: learn more
• Guide: learn more
• JavaScript info: learn more
🐌
is this right?
like this: import { REST,Routes } from 'discord.js';
yes
can you help me pls
you were told what the issue was, given resources to fix it, and then you replace your almost-working code with something completely irrelevant
.
.
time for you to help yourself
you have to resolve the promise given from import()
Shouldn't this be right?
not quite, but the error is just about how you've exported it
here you should either use await, or use then inside Promise.all(...map(...))
Do I have an error in my ping.js?
the result of import() will look like { default: { data: ..., execute: ... } }
well what did i say
yeah because it doesn't exist, and that's not how promises work
you said i should use await
that's not how await works, please learn how to handle promises properly
ok, thanks for your help
Don't delete your original message in the future, it won't help future people with the same problem (':
The problem is not solved