public function setChan($chan)
    {
        if (!\Erebot\Utils::stringifiable($chan)) {
            throw new \Erebot\InvalidValueException('Not a channel');
        }

        $this->chan = $chan;
    }