From 1548ecf73bf27224b07f4f8dedc7767c669fb36b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Gro=C3=9F?= Date: Mon, 16 Jan 2023 12:55:28 +0100 Subject: [PATCH] Collection: Only allow the initator to use the components Fixes #40 --- commands/collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/collection.js b/commands/collection.js index 217e57a..d39551e 100644 --- a/commands/collection.js +++ b/commands/collection.js @@ -22,7 +22,7 @@ module.exports = { .setColor(0x00AE86); //add collector for pagination - const filter = (i) => i.customId.includes(uid); + const filter = (i) => i.customId.includes(uid) && i.user.id === user.discordId; const collector = interaction.channel.createMessageComponentCollector({ filter, time: 60000 }); let row = this.getPaginateComponents(uid, prev=false, groupDupes=groupDupes);