Modify Guild Role Positions#

ORCAcode discord_modify_guild_role_positions(struct discord *client, u64_snowflake_t guild_id, struct discord_modify_guild_role_positions_params **params, struct discord_role ***ret)#

Modify the positions of a given role list for the guild.

Note

Requires the MANAGE_ROLES permission

Note

Fires multiple Guild Role Update events

Parameters:
  • client – the client created with discord_init()

  • guild_id – the unique id of the guild to get welcome screen of

  • params – request parameters

  • ret – if successful, a null-terminated list of discord_role, that should be free’d with discord_role_list_free()

Returns:

ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary

struct discord_modify_guild_role_positions_params#

Methods

  • Initializer:

    • void discord_modify_guild_role_positions_params_init(struct discord_modify_guild_role_positions_params *)

  • Cleanup:

    • void discord_modify_guild_role_positions_params_cleanup(struct discord_modify_guild_role_positions_params *)

    • void discord_modify_guild_role_positions_params_list_free(struct discord_modify_guild_role_positions_params **)

  • JSON Decoder:

    • void discord_modify_guild_role_positions_params_from_json(char *rbuf, size_t len, struct discord_modify_guild_role_positions_params *)

    • void discord_modify_guild_role_positions_params_list_from_json(char *rbuf, size_t len, struct discord_modify_guild_role_positions_params ***)

  • JSON Encoder:

    • void discord_modify_guild_role_positions_params_to_json(char *wbuf, size_t len, struct discord_modify_guild_role_positions_params *)

    • void discord_modify_guild_role_positions_params_list_to_json(char *wbuf, size_t len, struct discord_modify_guild_role_positions_params **)

Public Members

u64_snowflake_t id#

role

int position#

sorting position of the role