If I define my run method like this: async run(message) {. Any async calls that I make inside return undefined.
After long searching I found that async calls did work inside another command which requires arguments, trying this out on my problematic command I found a work-around. Namely changing the definition to async run(message, {}) {. I can't find any clarification in the documentation if this is as intended or not.
If I define my run method like this:
async run(message) {
. Any async calls that I make inside return undefined.After long searching I found that async calls did work inside another command which requires arguments, trying this out on my problematic command I found a work-around. Namely changing the definition to
async run(message, {}) {
. I can't find any clarification in the documentation if this is as intended or not.