Skip to content

Commit

Permalink
fix: delete message from threads
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-737 committed Sep 29, 2023
1 parent 99eb1b1 commit 2f11e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/Apps/deleteMsg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default {
if (webhook?.owner?.id !== interaction.client.user?.id) return false;

// finally, delete the message
return await webhook?.deleteMessage(element.messageId, channel.isThread() ? channel.parent?.id : undefined)
return await webhook?.deleteMessage(element.messageId, channel.isThread() ? channel.id : undefined)
.then(() => true)
.catch((e) => {
captureException(e, { user: { username: interaction.user.username, extra: { action: 'networkMessageDelete ' } } });
Expand Down

0 comments on commit 2f11e4a

Please sign in to comment.