Set Role Positions
discord_set_role_positionsReorganize your Discord server's role hierarchy by assigning new positions to roles, with higher numbers granting more authority. Ensure roles are only moved below the bot's highest role.
Instructions
Reorder role hierarchy by setting role positions.
Higher position = more authority in the hierarchy. The @everyone role is always at position 0. Roles can only manage other roles below them in the hierarchy.
IMPORTANT: The bot can only move roles that are below its own highest role in the hierarchy.
Args:
guild_id (string): Discord server/guild ID
positions (array): Array of objects with:
role_id (string): Discord role ID
position (number): New position for the role (higher = more authority)
Returns: Confirmation of position changes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | Discord server/guild ID (snowflake) | |
| positions | Yes | Array of role positions to set |