RSM-38 Added Discord Routing for relevant notifications

This commit is contained in:
2020-10-10 00:39:53 +01:00
parent 2a43e213f9
commit 82123b1c26
9 changed files with 90 additions and 16 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Notifications;
use App\Traits\DiscordRoutable;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
@@ -15,7 +16,7 @@ use App\Facades\Options;
class NewUser extends Notification implements ShouldQueue
{
use Queueable, Cancellable;
use Queueable, Cancellable, DiscordRoutable;
public $user;
@@ -83,6 +84,11 @@ class NewUser extends Notification implements ShouldQueue
});
}
public function toDiscord($notifiable)
{
return $this->toSlack($notifiable);
}
/**
* Get the array representation of the notification.
*