Skip to content

Commit

Permalink
✨ Best visual response
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu11-A committed Jun 16, 2024
1 parent 91222bb commit 9618bf4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ new Component({
type: "StringSelect",
async run(interaction) {
if (!interaction.inCachedGuild()) return
await interaction.deferReply()
if (!interaction.memberPermissions.has(PermissionsBitField.Flags.Administrator)) throw await new Error({ element: 'você', interaction }).forbidden().reply()

const { message, values } = interaction
Expand All @@ -22,6 +23,6 @@ new Component({
await new TemplateBuilder({ interaction })
.setData(templateData)
.setMode('debug')
.edit({ messageId: message.id })
.edit({ messageId: message.id }).then(() => interaction.deleteReply())
}
})

0 comments on commit 9618bf4

Please sign in to comment.