Follow News Channel#
-
ORCAcode discord_follow_news_channel(struct discord *client, u64_snowflake_t channel_id, struct discord_follow_news_channel_params *params, struct discord_channel *ret)#
Follow a News Channel to send messages to a target channel.
Note
Requires MANAGE_WEBHOOKS permission in the target channel MANAGE_WEBHOOKS permission in the target channel
- Parameters:
client – the client created with discord_init()
channel_id – the channel to post the typing indicator to
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary
-
struct discord_follow_news_channel_params#
Methods
Initializer:
void discord_follow_news_channel_params_init(struct discord_follow_news_channel_params *)
Cleanup:
void discord_follow_news_channel_params_cleanup(struct discord_follow_news_channel_params *)
void discord_follow_news_channel_params_list_free(struct discord_follow_news_channel_params **)
JSON Decoder:
void discord_follow_news_channel_params_from_json(char *rbuf, size_t len, struct discord_follow_news_channel_params *)
void discord_follow_news_channel_params_list_from_json(char *rbuf, size_t len, struct discord_follow_news_channel_params ***)
JSON Encoder:
void discord_follow_news_channel_params_to_json(char *wbuf, size_t len, struct discord_follow_news_channel_params *)
void discord_follow_news_channel_params_list_to_json(char *wbuf, size_t len, struct discord_follow_news_channel_params **)
Public Members
-
u64_snowflake_t webhook_channel_id#