Skip to content

Commit

Permalink
Merge branch 'preview'
Browse files Browse the repository at this point in the history
  • Loading branch information
quanghuynguyen1902 committed May 22, 2024
2 parents 55b5a02 + 000f3ba commit 828f55f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [6.49.2-rc.1](https://github.com/consolelabs/mochi-discord/compare/v6.49.1...v6.49.2-rc.1) (2024-05-22)


### Bug Fixes

* wla exist error msg ([#1664](https://github.com/consolelabs/mochi-discord/issues/1664)) ([99ce002](https://github.com/consolelabs/mochi-discord/commit/99ce0026759ead68557e6a67e2ea0f219402f604))

## [6.49.1](https://github.com/consolelabs/mochi-discord/compare/v6.49.0...v6.49.1) (2024-05-22)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,5 @@
"node": "18.x"
},
"name": "mochi-discord",
"version": "6.49.1"
"version": "6.49.2-rc.1"
}
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 828f55f

Please sign in to comment.