protected function attributeHelper($key, $class)
    {
        if ($this->attributes[$key] instanceof $class) {
            return $this->attributes[$key];
        }

        return $this->discord->factory($class, $this->attributes[$key], true);
    }
protected function attributeHelper($key, $class)
    {
        if ($this->attributes[$key] instanceof $class) {
            return $this->attributes[$key];
        }

        return $this->discord->factory($class, $this->attributes[$key], true);
    }
protected function attributeHelper ( $ key , $ class ) { if ( $ this -> attributes [ $ key ] instanceof $ class ) { return $ this -> attributes [ $ key ] ; } return $ this -> discord -> factory ( $ class , $ this -> attributes [ $ key ] , true ) ; }
Helps with getting embed attributes.

@param string $key   The attribute key.
@param string $class The attribute class.

@return mixed
Helps with getting embed attributes .