3
0
Fork 0
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:
almeidx 2021-07-29 17:24:53 +01:00
parent 5fad488a63
commit 5e91a9fed3
No known key found for this signature in database
GPG key ID: 8558FBFF849BD664
3 changed files with 3 additions and 9 deletions

View file

@ -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) {