# WebhookLog

`class` in `http` · v0.6.0

<https://docs.seedcord.org/packages/http/0.6.0/classes/webhook-log>

Base class for an HTTP subscriber that delivers its event to a Discord webhook, binding `this.core` to the HTTP [`Core`](/packages/http/0.6.0/interfaces/core).

```ts
abstract class WebhookLog<
    KeyOfSubscribers extends SubscriptionKey
> extends WebhookLog<KeyOfSubscribers, Core>
```

## Constructors

### constructor

```ts
Subscriber(data: AllSubscriptions[KeyOfSubscribers], core: TCore)
```

Instantiates the subscriber with event data and core.

## Properties

### core

```ts
protected readonly core: TCore
```

### data

```ts
protected readonly data: AllSubscriptions[KeyOfSubscribers]
```

### logger

```ts
protected readonly logger: Logger
```

## Methods

### execute

```ts
async execute(): Promise<void>
```

### report

```ts
abstract report(
    suppressed: number
): WebhookReport | Promise<WebhookReport>
```

Builds the message for one published event.

### throttleKey

```ts
protected throttleKey(): string | null
```

Events sharing this key collapse into one card per minute. Return `null` to send every event.
