added embedded Discord messages logic

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

No files matched your search

@@ -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;