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