# boolean_smtp_discord_notification_payload

> Filters the Discord webhook payload before it is sent.

Filter · Tier A · Since 1.0.0



## Signature

```php
add_filter( 'boolean_smtp_discord_notification_payload', $callback, 10, 4 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$payload` | `array<string, mixed>` | Discord webhook payload (embeds, username, and so on). |
| `$message` | `string` | Human-readable alert message. |
| `$context` | `array<string, mixed>` | Additional context passed to the channel. |
| `$settings` | `array<string, mixed>` | Channel settings the payload was built from. |

**Returns** `array<string, mixed>` — The filtered payload.

## Fires in

- [app/Services/Notification/Channels/DiscordChannel.php:98](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Notification/Channels/DiscordChannel.php#L98) — `BooleanSmtp\Services\Notification\Channels\DiscordChannel::send()`

## Example

```php
add_filter( 'boolean_smtp_discord_notification_payload', function ( array $payload, string $message, array $context, array $settings ) {
    return $payload;
}, 10, 4 );
```
