         rating: process.env.HUBOT_GIPHY_DEFAULT_RATING
       }, state.options
       @api.search options, (err, res) =>
-        @handleResponse state, err, => @getRandomResult(res.data, @getUriFromResult)
+        @handleResponse state, err, => @getRandomResultData(res.data, @getUriFromResultData)
     else
       @getRandomUri state
 

      rating: process.env.HUBOT_GIPHY_DEFAULT_RATING
    }, state.options
    @api.translate options, (err, res) =>
      @handleResponse state, err, => @getRandomResult(res.data, @getUriFromResult)

  getRandomUri: (state) ->
    @log 'getRandomUri:', state

    if state.args and state.args.length > 0
      ids = state.args.split(' ').map(x -> x.trim())
      @api.id ids, (err, res) =>
        @handleResponse state, err, => @getRandomResultData(res.data, @getUriFromResultData)
    else
      @error state.msg, 'No Id Provided'

