# WebhookUrl

`function` in `core` · v0.12.0

<https://seedcord.org/docs/packages/core/0.12.0/functions/webhook-url>

Declares the environment variable a [`WebhookLog`](/docs/packages/core/0.12.0/classes/webhook-log) reporter reads its webhook url from.

An unset variable disables the reporter with a boot warning. A set but malformed value throws
at boot.

```ts
WebhookUrl(
    envKey: string
): <Keys extends SubscriptionKey>(
    constructor: Constructor<WebhookLog<Keys, CoreBase>>
) => void
```

Declares the environment variable a [`WebhookLog`](/docs/packages/core/0.12.0/classes/webhook-log) reporter reads its webhook url from.

An unset variable disables the reporter with a boot warning. A set but malformed value throws
at boot.

Parameters.

- `envKey` `string` — The environment variable name holding the webhook url

Returns `<Keys extends SubscriptionKey>(constructor: Constructor<WebhookLog<Keys, CoreBase>>) => void`.
