Skip to content

Commit

Permalink
bad logging lol
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Dec 28, 2023
1 parent c43be80 commit f12cbba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/webserver/banshare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ const banButton = new Button(
ephemeral: true,
});
}
console.count() // 1
const reason =
'simulated banshare: ' +
(interaction.message.embeds[0].fields[3].value ??
'no reason provided');
console.count() // 2
const modal = new ModalBuilder()
.setCustomId(`ban`)
.setTitle(`Ban <@${data.userId}>`)
Expand All @@ -44,7 +46,9 @@ const banButton = new Button(
.setValue(reason)
)
);
console.count() // 3
await interaction.showModal(modal);
console.count() // 4
interaction
.awaitModalSubmit({
filter: (interaction) =>
Expand Down

0 comments on commit f12cbba

Please sign in to comment.