X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-rpc-php.git/blobdiff_plain/c427a4ef706ed81c1a86f3326b5b323b6c8e5973..94e1459d52b429e3e5d43d36fabada6d0801bdc5:/lib/Channel.php diff --git a/lib/Channel.php b/lib/Channel.php index 4e9db45..7a6a68e 100644 --- a/lib/Channel.php +++ b/lib/Channel.php @@ -21,9 +21,11 @@ class Channel * @return stdClass|array|bool * @throws Exception */ - public function getAll(): stdClass|array|bool + public function getAll(int $object_detail_level=1): stdClass|array|bool { - $response = $this->connection->query('channel.list'); + $response = $this->connection->query('channel.list', [ + 'object_detail_level' => $object_detail_level, + ]); if(!is_bool($response)) { return $response->list; @@ -37,9 +39,12 @@ class Channel * * @return stdClass|array|bool */ - public function get(string $channel): stdClass|array|bool + public function get(string $channel, int $object_detail_level=3): stdClass|array|bool { - $response = $this->connection->query('channel.get', ['channel' => $channel]); + $response = $this->connection->query('channel.get', [ + 'channel' => $channel, + 'object_detail_level' => $object_detail_level, + ]); if (!is_bool($response)) { return $response->channel;