Discord Bot That Is Able To Create Roles

I need my discord bot to at a command (say !command) will create 3 roles (role one, role two, role three). It would be great if the roles could have colors and be hoisted but it’s not necessary and I don’t need anything beyond that. Nothing I’ve seen on Stack Overflow or Youtube has worked. Also, I’m using discord.js if that helps.

This is the code I’ve tried:

guild.roles.create({ data: { name: "Role One", permissions: ["View_Channels"] } });

36 thoughts on “Discord Bot That Is Able To Create Roles”

Leave a Comment