Skip to content

Commit

Permalink
🐛 Fix command server mixup
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusOtter committed Mar 29, 2023
1 parent f30124a commit c42f31d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/models/NeedleModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ export default abstract class NeedleModal {
await interaction.showModal(builder);
return interaction.awaitModalSubmit({
time: 1000 * 60 * 15, // 15 min
filter: x => x.customId === this.customId && x.user.id === interaction.user.id,
filter: x =>
x.customId === this.customId &&
x.user.id === interaction.user.id &&
x.channelId === interaction.channelId,
});
}
}
Expand Down

0 comments on commit c42f31d

Please sign in to comment.