fix: affichait le rôle everyone dans la liste de setrole

This commit is contained in:
Nemo 2021-11-14 02:19:12 +01:00
parent 1ef53e8dd0
commit 6471c772ce

View File

@ -36,7 +36,7 @@ module.exports = {
}); });
roles.forEach(element => { roles.forEach(element => {
if (element.managed != true && element.rawPosition < maxPos) { if (element.managed != true && element.rawPosition < maxPos && element.rawPosition != 0) {
selectMenu.addOptions([ selectMenu.addOptions([
{ {
label: element.name, label: element.name,
@ -57,7 +57,7 @@ module.exports = {
const collector = interaction.channel.createMessageComponentCollector({ const collector = interaction.channel.createMessageComponentCollector({
filter: filter, filter: filter,
time: 5 * 1000, time: 3 * 60000,
}); });
commandUser.set(interaction.user.id, interaction); commandUser.set(interaction.user.id, interaction);