src/DiscordChannel.php
public function send($notifiable, Notification $notification)
    {
        if (! $channel = $notifiable->routeNotificationFor('discord')) {
            return;
        }

        $message = $notification->toDiscord($notifiable);

        return $this->discord->send($channel, [
            'content' => $message->body,
            'embed' => $message->embed,
        ]);
    }
public function send($notifiable, Notification $notification)
    {
        if (! $channel = $notifiable->routeNotificationFor('discord')) {
            return;
        }

        $message = $notification->toDiscord($notifiable);

        return $this->discord->send($channel, [
            'content' => $message->body,
            'embed' => $message->embed,
        ]);
    }
public function send ( $ notifiable , Notification $ notification ) { if ( ! $ channel = $ notifiable -> routeNotificationFor ( 'discord' ) ) { return ; } $ message = $ notification -> toDiscord ( $ notifiable ) ; return $ this -> discord -> send ( $ channel , [ 'content' => $ message -> body , 'embed' => $ message -> embed , ] ) ; }
Send the given notification.

@param mixed $notifiable
@param \Illuminate\Notifications\Notification $notification

@return array

@throws \NotificationChannels\Discord\Exceptions\CouldNotSendNotification
Send the given notification .