Skip to content

Commit

Permalink
🐛 Fix: Duple Reply
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu11-A committed Jun 14, 2024
1 parent cde493a commit 03aaa78
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ new Component({
customId: 'Switch',
type: "Button",
async run(interaction) {
const { guild, channelId, channel, user, message } = interaction
const { guild, channelId, user, message } = interaction
if (!interaction.inCachedGuild()) return
interaction.deferReply({ ephemeral: true })
if (guild === null) return await new Error({ element: 'executar essa ação pois você teve estar em uma Guilda!', interaction }).notPossible().reply()
Expand Down Expand Up @@ -60,6 +60,5 @@ new Component({
return
}
await interaction.deleteReply()
await channel?.send({ embeds: [embed] })
},
})

0 comments on commit 03aaa78

Please sign in to comment.