From 6471c772ceaba370873330c6c6892ceff0294451 Mon Sep 17 00:00:00 2001 From: Nemo Date: Sun, 14 Nov 2021 02:19:12 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20affichait=20le=20r=C3=B4le=20everyone=20?= =?UTF-8?q?dans=20la=20liste=20de=20setrole?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/setrole.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/setrole.js b/commands/setrole.js index 512a830..a7c3594 100644 --- a/commands/setrole.js +++ b/commands/setrole.js @@ -36,7 +36,7 @@ module.exports = { }); roles.forEach(element => { - if (element.managed != true && element.rawPosition < maxPos) { + if (element.managed != true && element.rawPosition < maxPos && element.rawPosition != 0) { selectMenu.addOptions([ { label: element.name, @@ -57,7 +57,7 @@ module.exports = { const collector = interaction.channel.createMessageComponentCollector({ filter: filter, - time: 5 * 1000, + time: 3 * 60000, }); commandUser.set(interaction.user.id, interaction);