function resolve($guildmember) {
        if($guildmember instanceof \CharlotteDunois\Yasmin\Models\GuildMember) {
            return $guildmember;
        }
        
        if($guildmember instanceof \CharlotteDunois\Yasmin\Models\User) {
            $guildmember = $guildmember->id;
        }
        
        if(\is_int($guildmember)) {
            $guildmember = (string) $guildmember;
        }
        
        if(\is_string($guildmember) && parent::has($guildmember)) {
            return parent::get($guildmember);
        }
        
        throw new \InvalidArgumentException('Unable to resolve unknown guild member');
    }
function resolve($guildmember) {
        if($guildmember instanceof \CharlotteDunois\Yasmin\Models\GuildMember) {
            return $guildmember;
        }
        
        if($guildmember instanceof \CharlotteDunois\Yasmin\Models\User) {
            $guildmember = $guildmember->id;
        }
        
        if(\is_int($guildmember)) {
            $guildmember = (string) $guildmember;
        }
        
        if(\is_string($guildmember) && parent::has($guildmember)) {
            return parent::get($guildmember);
        }
        
        throw new \InvalidArgumentException('Unable to resolve unknown guild member');
    }
function resolve ( $ guildmember ) { if ( $ guildmember instanceof \ CharlotteDunois \ Yasmin \ Models \ GuildMember ) { return $ guildmember ; } if ( $ guildmember instanceof \ CharlotteDunois \ Yasmin \ Models \ User ) { $ guildmember = $ guildmember -> id ; } if ( \ is_int ( $ guildmember ) ) { $ guildmember = ( string ) $ guildmember ; } if ( \ is_string ( $ guildmember ) && parent :: has ( $ guildmember ) ) { return parent :: get ( $ guildmember ) ; } throw new \ InvalidArgumentException ( 'Unable to resolve unknown guild member' ) ; }
Resolves given data to a guildmember.
@param \CharlotteDunois\Yasmin\Models\GuildMember|\CharlotteDunois\Yasmin\Models\User|string|int  $guildmember  string/int = user ID
@return \CharlotteDunois\Yasmin\Models\GuildMember
@throws \InvalidArgumentException
Resolves given data to a guildmember .