Skip to content

Commit

Permalink
fix: wla exist error msg (#1664)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanddd authored May 22, 2024
1 parent 09f843a commit 99ce002
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/errors/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ export class BotBaseError extends Error {
}
} else {
this.reply = async (...args) => {
if (message && !message.deferred) {
await message.deferReply().catch(() => null)
}
await message?.editReply(...args).catch(() => null)
}
}
Expand Down

0 comments on commit 99ce002

Please sign in to comment.