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
1client.on("message", message => {
2 if (message.content === ("commend")) {
3 if (!message.member.hasPermission("ADMINISTRATOR")) return;
4 message.channel.send('reply');
5 };
6});