Skip to main content
discord.createRole create a Discord server role.
automations/discord-create-role.automation.ts

Inputs

Required guildId and name. Optional decimal permissions, color, hoist, mentionable, and audit-log reason. Optional second argument { account } selects the Discord binding.

Output

Returns the created DiscordRole.

Discord behavior

Requires MANAGE_ROLES. Discord creates the role at the bottom of the bot-manageable hierarchy.