Get Channel Webhooks#
-
ORCAcode discord_get_channel_webhooks(struct discord *client, u64_snowflake_t channel_id, struct discord_webhook ***ret)#
Get webhooks from a given channel.
Note
Requires the MANAGE_WEBHOOKS permission
- Parameters:
client – the client created with discord_init()
channel_id – the channel that the webhooks belongs to
ret – if successful, a null-terminated list of discord_webhook, that should be free’d with
discord_webhook_list_free()
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary