Modify Guild Channel Positions#
-
ORCAcode discord_modify_guild_channel_positions(struct discord *client, u64_snowflake_t guild_id, struct discord_modify_guild_channel_positions_params **params)#
Modify guild channel positions.
Note
Requires MANAGE_CHANNELS permission
- Parameters:
client – the client created with discord_init()
guild_id – the unique id of the guild to change the positions of the channels in
params – request parameters
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary
-
struct discord_modify_guild_channel_positions_params#
Methods
Initializer:
void discord_modify_guild_channel_positions_params_init(struct discord_modify_guild_channel_positions_params *)
Cleanup:
void discord_modify_guild_channel_positions_params_cleanup(struct discord_modify_guild_channel_positions_params *)
void discord_modify_guild_channel_positions_params_list_free(struct discord_modify_guild_channel_positions_params **)
JSON Decoder:
void discord_modify_guild_channel_positions_params_from_json(char *rbuf, size_t len, struct discord_modify_guild_channel_positions_params *)
void discord_modify_guild_channel_positions_params_list_from_json(char *rbuf, size_t len, struct discord_modify_guild_channel_positions_params ***)
JSON Encoder:
void discord_modify_guild_channel_positions_params_to_json(char *wbuf, size_t len, struct discord_modify_guild_channel_positions_params *)
void discord_modify_guild_channel_positions_params_list_to_json(char *wbuf, size_t len, struct discord_modify_guild_channel_positions_params **)
Public Members
-
u64_snowflake_t id#
channel id
-
int position#
sorting position of the channel
-
bool lock_permissions#
syncs the permission overwrites with the new parent, if moving to a new category
-
u64_snowflake_t parent_id#
the new parent ID for the channel that is moved