*/ class ArtistResourceUpdated extends PivotUpdatedEvent { /** * Create a new event instance. * * @param ArtistResource $artistResource */ public function __construct(ArtistResource $artistResource) { parent::__construct($artistResource->artist, $artistResource->resource); $this->initializeEmbedFields($artistResource); } /** * Get the description for the Discord message payload. * * @return string */ protected function getDiscordMessageDescription(): string { $foreign = $this->getForeign(); $related = $this->getRelated(); return "Resource '**{$foreign->getName()}**' for Artist '**{$related->getName()}**' has been updated."; } }