Edit Channel Permissions#
-
ORCAcode discord_edit_channel_permissions(struct discord *client, u64_snowflake_t channel_id, u64_snowflake_t overwrite_id, struct discord_edit_channel_permissions_params *params)#
Edit the channel permission overwrites for a user or role in a channel.
- Parameters:
client – the client created with discord_init()
channel_id – the channel that the message belongs to
overwrite_id
params – request parameters
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary
-
struct discord_edit_channel_permissions_params#
Methods
Initializer:
void discord_edit_channel_permissions_params_init(struct discord_edit_channel_permissions_params *)
Cleanup:
void discord_edit_channel_permissions_params_cleanup(struct discord_edit_channel_permissions_params *)
void discord_edit_channel_permissions_params_list_free(struct discord_edit_channel_permissions_params **)
JSON Decoder:
void discord_edit_channel_permissions_params_from_json(char *rbuf, size_t len, struct discord_edit_channel_permissions_params *)
void discord_edit_channel_permissions_params_list_from_json(char *rbuf, size_t len, struct discord_edit_channel_permissions_params ***)
JSON Encoder:
void discord_edit_channel_permissions_params_to_json(char *wbuf, size_t len, struct discord_edit_channel_permissions_params *)
void discord_edit_channel_permissions_params_list_to_json(char *wbuf, size_t len, struct discord_edit_channel_permissions_params **)
Public Members
-
u64_bitmask_t allow#
permission bit set
-
u64_bitmask_t deny#
permission bit set
-
enum discord_channel_types type#