Alchemy.Webhook.edit

You're seeing just the function edit, go back to Alchemy.Webhook module for more information.
Link to this function

edit(webhook, options)

Specs

edit(t(), name: String.t(), avatar: String.t()) :: {:ok, t()} | {:error, term()}

Modifies the settings of a webhook.

Note that the user field of the webhook will be missing.

Options

  • name The name of the webhook.
  • avatar A link to a 128x128 icon image.

Examples

{:ok, hook} = Webhook.create("6666", "Captian Hook")
# Let's fix that typo:
Webhook.edit(hook, name: "Captain Hook")