# WebhookUrl

`function` in `core` · v0.4.1

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

Declares the environment variable a [`WebhookLog`](/packages/core/0.4.1/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
): <
    HandlerCtor extends Constructor<
        WebhookLog<SubscriptionKey, CoreBase>
    >
>(
    constructor: HandlerCtor
) => void
```

Declares the environment variable a [`WebhookLog`](/packages/core/0.4.1/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 `<HandlerCtor extends Constructor<WebhookLog<SubscriptionKey, CoreBase>>>(constructor: HandlerCtor) => void`.
