Improve error message when message.delete() fails
Some checks are pending
CI / CI (push) Waiting to run

This commit is contained in:
SileNce5k 2026-02-27 19:25:40 +01:00
commit 7791fa5654
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -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);
}
}