public function getHelp($prefix)
    {
        $helpString = "{$prefix}{$this->command} {$this->usage}- {$this->description}\r\n";

        foreach ($this->subCommands as $command) {
            $help = $command->getHelp($prefix.$this->command.' ');
            $helpString .= "    {$help['text']}\r\n";
        }

        return [
            'text'              => $helpString,
            'subCommandAliases' => $this->subCommandAliases,
        ];
    }
public function getHelp($prefix)
    {
        $helpString = "{$prefix}{$this->command} {$this->usage}- {$this->description}\r\n";

        foreach ($this->subCommands as $command) {
            $help = $command->getHelp($prefix.$this->command.' ');
            $helpString .= "    {$help['text']}\r\n";
        }

        return [
            'text'              => $helpString,
            'subCommandAliases' => $this->subCommandAliases,
        ];
    }
public function getHelp ( $ prefix ) { $ helpString = "{$prefix}{$this->command} {$this->usage}- {$this->description}\r\n" ; foreach ( $ this -> subCommands as $ command ) { $ help = $ command -> getHelp ( $ prefix . $ this -> command . ' ' ) ; $ helpString .= "    {$help['text']}\r\n" ; } return [ 'text' => $ helpString , 'subCommandAliases' => $ this -> subCommandAliases , ] ; }
Gets help for the command.

@param string $prefix The prefix of the bot.

@return string The help.
Gets help for the command .