Create Webhook

ORCAcode discord_create_webhook(struct discord *client, u64_snowflake_t channel_id, struct discord_create_webhook_params *params, struct discord_webhook *ret)

Create a new webhook.

Note

Requires the MANAGE_WEBHOOKS permission

Parameters
  • client – the client created with discord_init()

  • channel_id – the channel that the webhook belongs to

  • 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

Warning

doxygenstruct: Cannot find class “discord_create_webhook_params” in doxygen xml output for project “Orca” from directory: ../xml