discord_set_role_position
Move a role up or down in a Discord server's hierarchy to change permission precedence and member-list ordering. Requires Manage Roles permission.
Instructions
Move a role up or down in the server's role hierarchy, which determines permission precedence and member-list ordering. Higher position = higher in the list. Requires the Manage Roles permission, and the target position must be below the bot's highest role.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role_id | Yes | ID (snowflake) of the role to reposition. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| position | Yes | New hierarchy position (1 = lowest, just above @everyone, which sits at 0). Higher numbers rank higher. |