fix(events): fixed playlist events (#984)

This commit is contained in:
Kyrch
2025-10-27 16:11:54 -03:00
committed by GitHub
parent 3de70d1199
commit 270ca8ed7b
2 changed files with 10 additions and 0 deletions
@@ -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;