Skip to content

Commit

Permalink
guh
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Dec 28, 2023
1 parent acdb4da commit 74d86ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/webserver/banshare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const banButton = new Button(
}
const reason =
'simulated banshare: ' +
(interaction.message.embeds[0].fields[3].value ??
(interaction.message.embeds[0].fields[4].value ??
'no reason provided');
const modal = new ModalBuilder()
.setCustomId(`ban`)
Expand All @@ -57,9 +57,9 @@ const banButton = new Button(
interaction.guild?.bans.create(data.userId, {
reason: modalResponse.components[0].components[0].value,
});
await interaction.reply({
await interaction.followUp({
content: `<@${data.userId}> (\`${data.userId}\`) was banned.`,
ephemeral: true,
ephemeral: true
});
await interaction.update({
components: [
Expand Down

0 comments on commit 74d86ee

Please sign in to comment.