Question: In my code I used an array, I decided to try std :: set. I did this with an array:

```
for (int i=0; i<100; i++)
  {
    drawNMS(true, myMassive[myStr+i]);
  }

```

myStr is added by buttons.
For std :: set, as I understand it, I need to use an iterator.
I try to do so:

```
std::set <int>::iterator iter;
for(iter=mySet.begin(); iter!=mySet.end();iter++)
{
  drawNMS(true, myStr+*iter);
} 

```

Where to insert for (int i = 0; i <100; i ++) correctly so that the end result is like when working with an array?

Answer: 
In your code you're checking if the user mentioned is null, but it is at the end of the function. I think that putting the if just after you get the value should work:

```js
module.exports = {
    name: 'unmute',
    description: 'unmutes a muted member',
    execute(message, args, Discord) {

        if (message.member.hasPermission('MANAGE_ROLES')) {

            const role = message.guild.roles.cache.find(role => role.name === 'Muted');
            const member = message.mentions.members.first();
            if (!member) return message.channel.send("You have to mention a valid member");

            var unmuteChannel = message.guild.channels.cache.find(channel => channel.name.includes("modlogs"));

            const unmuteEmbed = new Discord.MessageEmbed()
            .addField("Unmuted user", member)
            .setFooter(`Unmuted by ${message.author.tag}`)
            .setTimestamp();

            member.roles.remove(role);
            message.channel.send(`${member} Has Been Unmuted`);
            unmuteChannel.send(unmuteEmbed); 
        }

    }
}

```
Move

```js
if (!member) return message.channel.send("You have to mention a valid member");

```

Below where you define member.

```js
const member = message.mentions.members.first();

```