json = $json; } public function readableMessage() { if(!empty($this->json->content)) { return $this->json->content; } $this->readable .= PHP_EOL; if(!empty($this->json->embeds[0]->title)) { $this->readable .= $this->json->embeds[0]->title . PHP_EOL; } if(!empty($this->json->embeds[0]->description)) { $this->readable .= preg_replace("/(?:__|[*#])|\[(.*?)\]\(.*?\)/"," ",$this->json->embeds[0]->description) . PHP_EOL; $this->readable .= $this->json->embeds[0]->url; } return $this->readable; } }