Skip to content

Commit

Permalink
πŸ› fix await user
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivien Mouret committed Dec 28, 2023
1 parent 2706762 commit fa557e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/daftbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ class DaftBot {
console.log(`[${getCurrentDatetime('comm')}] Error when unassigning the role ${role.name} to ${user.user.username} : ${error}`);
};
} else {
awaituser.send(this.language.remRole)
await user.send(this.language.remRole)
.catch(err => { console.log(`[${getCurrentDatetime('comm')}] Error author.send() ${err}`); });
console.log(`[${getCurrentDatetime('comm')}] ${user.user.username} have not the role ${role.name}`);
};
Expand Down

0 comments on commit fa557e6

Please sign in to comment.