Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Oct 14, 2024
1 parent 03e566d commit c5781f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/slash/purge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ export default new app.SlashCommand({
})
}

await interaction.deferReply()
await interaction.deferReply({ ephemeral: true })

await interaction.channel.bulkDelete(amount + 1, true)
await interaction.channel.bulkDelete(amount, true)

return interaction.editReply(
await app.getSystemMessage(
"success",
`Successfully purged ${amount} messages`,
`Successfully purged ${amount} messages.\nThis message will be deleted <t:${
Math.floor(Date.now() / 1000) + 5
}:R>`,
),
)
},
Expand Down

0 comments on commit c5781f5

Please sign in to comment.