Skip to main content

role_reorder

Function role_reorder 

Source
pub fn role_reorder(
    actor: &Party,
    roles: &[Role],
    moves: &[(RoleId, u32)],
) -> Result<(), Refusal>
Expand description

role.reorder: roles is the community’s role table, moves the request’s (role_id, new_position) pairs. Every role whose position changes must be below the actor before and after; positions must stay unique and non-zero; @everyone cannot be listed. The owner may move any other role.