Skip to content

Commit a254a6f

Browse files
committed
Return message sent response so it is available in NotificationSent event.
1 parent c81af64 commit a254a6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DiscordChannel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct(Discord $discord)
2525
* @param mixed $notifiable
2626
* @param \Illuminate\Notifications\Notification $notification
2727
*
28-
* @return void
28+
* @return array
2929
*
3030
* @throws \NotificationChannels\Discord\Exceptions\CouldNotSendNotification
3131
*/
@@ -37,7 +37,7 @@ public function send($notifiable, Notification $notification)
3737

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

40-
$this->discord->send($channel, [
40+
return $this->discord->send($channel, [
4141
'content' => $message->body,
4242
'embed' => $message->embed,
4343
]);

0 commit comments

Comments
 (0)