Modify Webhook with Token#
-
ORCAcode discord_modify_webhook_with_token(struct discord *client, u64_snowflake_t webhook_id, const char webhook_token[], struct discord_modify_webhook_with_token_params *params, struct discord_webhook *ret)#
Same discord_modify_webhook(), except this call does not require authentication and returns no user in the webhook object
- Parameters:
client – the client created with discord_init()
webhook_id – the webhook itself
webhook_token – the webhook token
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_with_token_params#
Methods
Initializer:
void discord_modify_webhook_with_token_params_init(struct discord_modify_webhook_with_token_params *)
Cleanup:
void discord_modify_webhook_with_token_params_cleanup(struct discord_modify_webhook_with_token_params *)
void discord_modify_webhook_with_token_params_list_free(struct discord_modify_webhook_with_token_params **)
JSON Decoder:
void discord_modify_webhook_with_token_params_from_json(char *rbuf, size_t len, struct discord_modify_webhook_with_token_params *)
void discord_modify_webhook_with_token_params_list_from_json(char *rbuf, size_t len, struct discord_modify_webhook_with_token_params ***)
JSON Encoder:
void discord_modify_webhook_with_token_params_to_json(char *wbuf, size_t len, struct discord_modify_webhook_with_token_params *)
void discord_modify_webhook_with_token_params_list_to_json(char *wbuf, size_t len, struct discord_modify_webhook_with_token_params **)