def pm_channel(id)
      id = id.resolve_id
      return @pm_channels[id] if @pm_channels[id]

      debug("Creating pm channel with user id #{id}")
      response = API::User.create_pm(token, id)
      channel = Channel.new(JSON.parse(response), self)
      @pm_channels[id] = channel
    end
def pm_channel(id)
      id = id.resolve_id
      return @pm_channels[id] if @pm_channels[id]

      debug("Creating pm channel with user id #{id}")
      response = API::User.create_pm(token, id)
      channel = Channel.new(JSON.parse(response), self)
      @pm_channels[id] = channel
    end
Creates a PM channel for the given user ID, or if one exists already, returns that one.
 It is recommended that you use {User#pm} instead, as this is mainly for internal use. However,
 usage of this method may be unavoidable if only the user ID is known.
 @param id [Integer] The user ID to generate a private channel for.
 @return [Channel] A private channel for that user.