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