1let role = message.guild.roles.cache.find(r => r.id === "Role ID");
2
3// The member you want to add the role to
4let member = message.mentions.members.first();
5
6// Add role to the member
7member.roles.add(role);
8
9// Or add it to yourself
10message.author.roles.add(role);
11
1let role = message.guild.roles.cache.find(role => role.name === "Rolename");
1var role = message.guild.roles.find(role => role.name === "MyRole");
2message.member.addRole(role);
3
1// deleting the channels overwrite for the message author
2channel.permissionOverwrites.get(message.author.id).delete();
3