function resolve($channel) {
        if($channel instanceof \CharlotteDunois\Yasmin\Interfaces\ChannelInterface) {
            return $channel;
        }
        
        if(\is_int($channel)) {
            $channel = (string) $channel;
        }
        
        if(\is_string($channel) && parent::has($channel)) {
            return parent::get($channel);
        }
        
        throw new \InvalidArgumentException('Unable to resolve unknown channel');
    }
function resolve($channel) {
        if($channel instanceof \CharlotteDunois\Yasmin\Interfaces\ChannelInterface) {
            return $channel;
        }
        
        if(\is_int($channel)) {
            $channel = (string) $channel;
        }
        
        if(\is_string($channel) && parent::has($channel)) {
            return parent::get($channel);
        }
        
        throw new \InvalidArgumentException('Unable to resolve unknown channel');
    }
function resolve ( $ channel ) { if ( $ channel instanceof \ CharlotteDunois \ Yasmin \ Interfaces \ ChannelInterface ) { return $ channel ; } if ( \ is_int ( $ channel ) ) { $ channel = ( string ) $ channel ; } if ( \ is_string ( $ channel ) && parent :: has ( $ channel ) ) { return parent :: get ( $ channel ) ; } throw new \ InvalidArgumentException ( 'Unable to resolve unknown channel' ) ; }
Resolves given data to a channel.
@param \CharlotteDunois\Yasmin\Interfaces\ChannelInterface|string|int  $channel  string/int = channel ID
@return \CharlotteDunois\Yasmin\Interfaces\ChannelInterface
@throws \InvalidArgumentException
Resolves given data to a channel .