Modify Channel#

ORCAcode discord_modify_channel(struct discord *client, u64_snowflake_t channel_id, struct discord_modify_channel_params *params, struct discord_channel *ret)#

Update a channel’s settings.

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

  • channel_id – the channel to be modified

  • params – request parameters

  • ret – if successful, a discord_channel that should be free’d with discord_channel_cleanup()

Returns:

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

struct discord_modify_channel_params#

Methods

  • Initializer:

    • void discord_modify_channel_params_init(struct discord_modify_channel_params *)

  • Cleanup:

    • void discord_modify_channel_params_cleanup(struct discord_modify_channel_params *)

    • void discord_modify_channel_params_list_free(struct discord_modify_channel_params **)

  • JSON Decoder:

    • void discord_modify_channel_params_from_json(char *rbuf, size_t len, struct discord_modify_channel_params *)

    • void discord_modify_channel_params_list_from_json(char *rbuf, size_t len, struct discord_modify_channel_params ***)

  • JSON Encoder:

    • void discord_modify_channel_params_to_json(char *wbuf, size_t len, struct discord_modify_channel_params *)

    • void discord_modify_channel_params_list_to_json(char *wbuf, size_t len, struct discord_modify_channel_params **)

Public Members

char *name#
char *icon#
enum discord_channel_types type#
int position#
char *topic#
bool nsfw#
int rate_limit_per_user#
int bitrate#
int user_limit#
struct discord_overwrite **permission_overwrites#
u64_snowflake_t parent_id#
char *rtc_region#
int video_quality_mode#
bool archived#
int auto_archive_duration#
bool locked#