Alchemy.Webhook.create

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

create(channel_id, name, options \\ [])

Specs

create(snowflake(), String.t(), [{:avatar, String.t()}]) ::
  {:ok, t()} | {:error, term()}

Creates a new webhook in a channel.

The name parameter is mandatory, and specifies the name of the webhook. of course.

Options

  • avatar A link to a 128x128 image to act as the avatar of the webhook.

    Examples

    {:ok, hook} = Webhook.create("66666", "The Devil")