mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
removed unnecessary collector filters
This commit is contained in:
parent
5fad488a63
commit
5e91a9fed3
3 changed files with 3 additions and 9 deletions
|
@ -22,8 +22,7 @@ export async function waitForButtonConfirm(
|
|||
]);
|
||||
const message = await channel.send({ ...toPost, components: [row] });
|
||||
|
||||
const filter = (iac: MessageComponentInteraction) => iac.message.id === message.id;
|
||||
const collector = message.createMessageComponentCollector({ filter, time: 10000 });
|
||||
const collector = message.createMessageComponentCollector({ time: 10000 });
|
||||
|
||||
collector.on("collect", (interaction: MessageComponentInteraction) => {
|
||||
if (options?.restrictToId && options.restrictToId !== interaction.user.id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue