Skip to content

Commit

Permalink
fix: sometimes msg not found so it can't delete (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
RainyXeon authored Oct 22, 2024
1 parent ded6665 commit ce0c266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/ReplyInteractionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class ReplyInteractionService {
const setup = await this.client.db.setup.get(String(this.message.guildId))

setTimeout(() => {
!setup || setup == null || setup.channel !== this.message.channelId
(!setup || setup == null || setup.channel !== this.message.channelId) && msg
? msg.delete().catch(() => null)
: true
}, this.client.config.utilities.DELETE_MSG_TIMEOUT)
Expand Down

0 comments on commit ce0c266

Please sign in to comment.