mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
fix(events): fixed playlist events (#984)
This commit is contained in:
@@ -13,6 +13,11 @@ use App\Models\List\Playlist;
|
||||
*/
|
||||
class PlaylistCreated extends ListCreatedEvent implements AssignHashidsEvent
|
||||
{
|
||||
public function getModel(): Playlist
|
||||
{
|
||||
return $this->model;
|
||||
}
|
||||
|
||||
protected function getDiscordMessageDescription(): string
|
||||
{
|
||||
return "Playlist '**{$this->getModel()->getName()}**' has been created.";
|
||||
|
||||
@@ -13,6 +13,11 @@ use App\Models\List\Playlist\PlaylistTrack;
|
||||
*/
|
||||
class TrackCreated extends ListCreatedEvent implements AssignHashidsEvent
|
||||
{
|
||||
public function getModel(): PlaylistTrack
|
||||
{
|
||||
return $this->model;
|
||||
}
|
||||
|
||||
public function shouldSendDiscordMessage(): bool
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user