mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-17 20:35:56 +02:00
26 lines
508 B
PHP
26 lines
508 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Events\Admin\Feature;
|
|
|
|
use App\Events\Base\Admin\AdminUpdatedEvent;
|
|
use App\Models\Admin\Feature;
|
|
|
|
/**
|
|
* @extends AdminUpdatedEvent<Feature>
|
|
*/
|
|
class FeatureUpdated extends AdminUpdatedEvent
|
|
{
|
|
public function __construct(Feature $feature)
|
|
{
|
|
parent::__construct($feature);
|
|
$this->initializeEmbedFields($feature);
|
|
}
|
|
|
|
public function shouldSendDiscordMessage(): bool
|
|
{
|
|
return $this->getModel()->isNullScope();
|
|
}
|
|
}
|