Creates a new role in a Discord guild with customizable name, permissions, color, hoist, mentionability, and icon. Requires MANAGE_ROLES permission. The icon and unicode_emoji fields are mutually exclusive.
iconstringHash of a custom image for the role's icon. Mutually exclusive with unicode_emoji.
namestringName for the new role. If omitted, Discord defaults to 'new role'.
colorintegerRGB color value for the role as an integer (e.g., red is 16711680). Defaults to 0 (no color).
hoistbooleanIf true, displays the role separately in the member list. Defaults to false.
guild_idRequiredstringThe unique identifier (snowflake ID) of the Discord guild where the role will be created.
mentionablebooleanIf true, this role can be mentioned by others. Defaults to false.
permissionsstringBitwise integer for role permissions combined from Discord permission flags.
unicode_emojistringStandard Unicode emoji for the role's icon. Mutually exclusive with icon.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
OAuth connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.