search role by name discordjs code example
Example: discord.js find role by name
let role = message.guild.roles.cache.find(role => role.name === "Rolename");
let role = message.guild.roles.cache.find(role => role.name === "Rolename");