Improve error message when message.delete() fails
Some checks are pending
CI / CI (push) Waiting to run
Some checks are pending
CI / CI (push) Waiting to run
This commit is contained in:
parent
9796e9245a
commit
7791fa5654
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ module.exports = {
|
|||
try{
|
||||
message.delete()
|
||||
}catch(err){
|
||||
console.error(`${this.name}: An error happened while trying to delete the original message.`)
|
||||
console.error(`${this.name}: An error occurred while trying to delete the original message.`)
|
||||
console.error(err);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue