In pure Javascript/NodeJS, how can I make a synchronous method, which returns a Promise, block until the Promise is resolved?
I’m writing a Discord bot running on NodeJS, although this question applies to numerous scenarios having nothing to do with Discord. I need to make a synchronous method (which must remain synchronous), which returns a Promise, block until the Promise is resolved. This must be accomplished in 100% pure Javascript (no JQuery, etc.)