discord_set_role_position
Change a role's position in the Discord server hierarchy to adjust permission precedence and member list order. Specify the new rank to determine which roles take priority.
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 |
|---|---|---|---|
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| role_id | Yes | ID (snowflake) of the role to reposition. | |
| position | Yes | New hierarchy position (0 = lowest, just above @everyone). Higher numbers rank higher. |