Skip to content

Commit

Permalink
fix(AxonUtils): sendDM not returning the value
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaaz authored Jul 4, 2020
1 parent 5186efb commit 81e0636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utility/AxonUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class AxonUtils {
* @memberof AxonUtils
*/
sendDM(user, content, options = {} ) {
this.library.user.getDM(user)
return this.library.user.getDM(user)
.then(chan => this.sendMessage(chan, content, options) )
.catch(err => {
this.logger.verbose(`DM disabled/Bot blocked [${user.username}#${user.discriminator} - ${user.id}]!`);
Expand Down

0 comments on commit 81e0636

Please sign in to comment.