discordjs / Commando

Official command framework for discord.js
Apache License 2.0
497 stars 243 forks source link

Async run is only possible when giving arguments #383

Closed Zelzahn closed 3 years ago

Zelzahn commented 3 years ago

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.