function permissionsIn($channel) {
        $channel = $this->guild->channels->resolve($channel);
        if(!($channel instanceof \CharlotteDunois\Yasmin\Interfaces\GuildChannelInterface)) {
            throw new \InvalidArgumentException('Given channel is not a guild channel');
        }
        
        return $channel->permissionsFor($this);
    }
function permissionsIn($channel) {
        $channel = $this->guild->channels->resolve($channel);
        if(!($channel instanceof \CharlotteDunois\Yasmin\Interfaces\GuildChannelInterface)) {
            throw new \InvalidArgumentException('Given channel is not a guild channel');
        }
        
        return $channel->permissionsFor($this);
    }
function permissionsIn ( $ channel ) { $ channel = $ this -> guild -> channels -> resolve ( $ channel ) ; if ( ! ( $ channel instanceof \ CharlotteDunois \ Yasmin \ Interfaces \ GuildChannelInterface ) ) { throw new \ InvalidArgumentException ( 'Given channel is not a guild channel' ) ; } return $ channel -> permissionsFor ( $ this ) ; }
Returns permissions for a member in a guild channel, taking into account roles and permission overwrites.
@param \CharlotteDunois\Yasmin\Interfaces\GuildChannelInterface|string  $channel
@return \CharlotteDunois\Yasmin\Models\Permissions
@throws \InvalidArgumentException
Returns permissions for a member in a guild channel taking into account roles and permission overwrites .