Alchemy.Client.move_roles
You're seeing just the function
move_roles
, go back to Alchemy.Client module for more information.
Link to this function
move_roles(guild_id, pairs)
Specs
move_roles(snowflake(), [{snowflake(), Integer}]) :: {:ok, [Alchemy.Guild.role()]} | {:error, term()}
Modifies the position of roles in a guild.
Takes a list of {id, position}
where position
is an integer starting at 0,
and id
is the id of the role.
Returns a list of all the roles in the guild.
Requires the :manage_roles
permission.