discord.createRole create a Discord server role.
automations/discord-create-role.automation.ts
Inputs
RequiredguildId and name. Optional decimal permissions, color, hoist, mentionable, and audit-log reason. Optional second argument { account } selects the Discord binding.
Output
Returns the createdDiscordRole.
Discord behavior
RequiresMANAGE_ROLES. Discord creates the role at the bottom of the bot-manageable hierarchy.