initializeEmbedFields($user); } /** * Get Discord message payload. * * @return DiscordMessage */ public function getDiscordMessage(): DiscordMessage { $user = $this->getUser(); return DiscordMessage::create('', [ 'description' => "User '**{$user->getName()}**' has been updated.", 'fields' => $this->getEmbedFields(), 'color' => EmbedColor::YELLOW, ]); } /** * Get Discord channel the message will be sent to. * * @return string */ public function getDiscordChannel(): string { return Config::get(ServiceConstants::ADMIN_DISCORD_CHANNEL_QUALIFIED); } }