+ /**
+ * Set and unset modes on a channel.
+ *
+ * @return stdClass|array|bool
+ */
+ public function set_mode(string $channel, string $modes, string $parameters): stdClass|array|bool
+ {
+ return $this->connection->query('channel.set_mode', [
+ 'channel' => $channel,
+ 'modes' => $modes,
+ 'parameters' => $parameters,
+ ]);
+ }
+
+ /**
+ * Set the channel topic.
+ *
+ * @return stdClass|array|bool
+ */
+ public function set_topic(string $channel, string $topic,
+ string $set_by=null, string $set_at=null): stdClass|array|bool
+ {
+ return $this->connection->query('channel.set_topic', [
+ 'channel' => $channel,
+ 'topic' => $topic,
+ 'set_by' => $set_by,
+ 'set_at' => $set_at,
+ ]);
+ }
+
+ /**
+ * Kick a user from the channel.
+ *
+ * @return stdClass|array|bool
+ */
+ public function kick(string $channel, string $nick, string $reason): stdClass|array|bool
+ {
+ return $this->connection->query('channel.kick', [
+ 'nick' => $nick,
+ 'channel' => $channel,
+ 'reason' => $reason,
+ ]);