added embedded Discord messages logic

This commit is contained in:
Jakub Novák
2024-09-30 00:43:35 +02:00
parent 019a8bfaa6
commit a2bca3d5b8
4 changed files with 83 additions and 10 deletions

View File

@@ -12,7 +12,7 @@ class DiscordChannel
*/
public function send(SendsDiscord $notifiable, Notification $notification): void
{
$message = $notification->toDiscord($notifiable);
$message = $notification->toDiscord();
$webhookUrl = $notifiable->routeNotificationForDiscord();
if (! $webhookUrl) {
return;