> $embeds */ protected function printEmbeds(array $embeds): void { foreach ($embeds as $embed) { if (! empty($embed['title'])) { $this->newLine(); $this->line(''.$this->plainText($embed['title']).''); } if (! empty($embed['description'])) { $this->line($this->plainText($embed['description'])); } foreach ($embed['fields'] ?? [] as $field) { $this->newLine(); $this->line(''.$this->plainText($field['name']).''); $this->line($this->plainText($field['value'])); } } } /** * Strip Discord markdown (code fences, bold) for readable console output. */ private function plainText(string $text): string { return trim(str_replace(['```', '**'], '', $text)); } }