def user(id)
      id = id.resolve_id
      return @users[id] if @users[id]

      LOGGER.out("Resolving user #{id}")
      begin
        response = API::User.resolve(token, id)
      rescue RestClient::ResourceNotFound
        return nil
      end
      user = User.new(JSON.parse(response), self)
      @users[id] = user
    end
def user(id)
      id = id.resolve_id
      return @users[id] if @users[id]

      LOGGER.out("Resolving user #{id}")
      begin
        response = API::User.resolve(token, id)
      rescue RestClient::ResourceNotFound
        return nil
      end
      user = User.new(JSON.parse(response), self)
      @users[id] = user
    end
Gets a user by its ID.
 @note This can only resolve users known by the bot (i.e. that share a server with the bot).
 @param id [Integer] The user ID that should be resolved.
 @return [User, nil] The user identified by the ID, or `nil` if it couldn't be found.