Skip to content

Commit fafdd54

Browse files
authored
Merge pull request #12 from necrotex/master
Added NotificationSent event support and Laravel 5.5 package auto discovery
2 parents c81af64 + 8d05485 commit fafdd54

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

composer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,12 @@
4848
},
4949
"config": {
5050
"sort-packages": true
51+
},
52+
"extra": {
53+
"laravel": {
54+
"providers": [
55+
"NotificationChannels\\Discord\\DiscordServiceProvider"
56+
]
57+
}
5158
}
5259
}

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)