Files
animethemes-server/app/Events/Base/List/ListRestoredEvent.php
T

28 lines
571 B
PHP

<?php
declare(strict_types=1);
namespace App\Events\Base\List;
use App\Constants\Config\ServiceConstants;
use App\Events\Base\BaseRestoredEvent;
use Illuminate\Support\Facades\Config;
/**
* @template TModel of \App\Models\BaseModel
*
* @extends BaseRestoredEvent<TModel>
*/
abstract class ListRestoredEvent extends BaseRestoredEvent
{
public function getDiscordChannel(): string
{
return Config::get(ServiceConstants::ADMIN_DISCORD_CHANNEL_QUALIFIED);
}
public function shouldSendDiscordMessage(): bool
{
return true;
}
}