# Discord Notifications Source: https://kart.bnomei.com/docs/guides/discord-notifications Updated: 2025-08-08T14:09:38+00:00 Summary: Easily send notifications to Slack or Discord from your Kirby site using a custom webhook. Use this plugin code to automate workflows and user alerts. ## Send to Channel You can send notifications to tools like Slack or Discord and even trigger workflows. To get started with receiving messages on Discord, use the following code. You can get a custom webhook right within your Discord server settings. Path: site/plugins/discord/index.php Code (php): ``` [ 'webhook' => ''; // TODO: set you webhook URL here ], 'hooks' => [ 'user.create:after' => function (User $user) { if ($user->isCustomer()) { site()->discord([ 'content' => 'NEW Customer: '.$user->nameOrEmail(), ]); } }, ], 'siteMethods' => [ 'discord' => function (array $data): bool { $webhook = option('kart.discord.webhook'); if ($webhook) { $response = Remote::post($webhook, [ 'headers' => [ 'Accept' => 'application/json', 'Accept-Charset: utf8', ], 'data' => $data, ]); return $response->code() === 204; } return false; }, ], // other options ]); ```