Modify Webhook#
-
ORCAcode discord_modify_webhook(struct discord *client, u64_snowflake_t webhook_id, struct discord_modify_webhook_params *params, struct discord_webhook *ret)#
Modify a webhook.
Note
Requires the MANAGE_WEBHOOKS permission
- Parameters:
client – the client created with discord_init()
webhook_id – the webhook itself
params – request parameters
ret – if successful, a discord_webhook that should be free’d with
discord_webhook_cleanup()
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary
-
struct discord_modify_webhook_params#
Methods
Initializer:
void discord_modify_webhook_params_init(struct discord_modify_webhook_params *)
Cleanup:
void discord_modify_webhook_params_cleanup(struct discord_modify_webhook_params *)
void discord_modify_webhook_params_list_free(struct discord_modify_webhook_params **)
JSON Decoder:
void discord_modify_webhook_params_from_json(char *rbuf, size_t len, struct discord_modify_webhook_params *)
void discord_modify_webhook_params_list_from_json(char *rbuf, size_t len, struct discord_modify_webhook_params ***)
JSON Encoder:
void discord_modify_webhook_params_to_json(char *wbuf, size_t len, struct discord_modify_webhook_params *)
void discord_modify_webhook_params_list_to_json(char *wbuf, size_t len, struct discord_modify_webhook_params **)
Public Members
-
char *name#
name of the webhook(1-80) chars
-
char *avatar#
base64 image for the default webhook avatar
-
u64_snowflake_t channel_id#
the new channel id this webhook should be moved to