Skip to content

Commit

Permalink
Revert "Added port option to rest options (#78)"
Browse files Browse the repository at this point in the history
This reverts commit 510aeaa.
  • Loading branch information
TTtie authored Jul 1, 2023
1 parent 510aeaa commit e0fabad
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ declare namespace Dysnomia {
baseURL?: string;
disableLatencyCompensation?: boolean;
domain?: string;
port?: string;
https?: boolean;
latencyThreshold?: number;
ratelimiterOffset?: number;
Expand Down
1 change: 0 additions & 1 deletion lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ class Client extends EventEmitter {
* @arg {String} [options.rest.domain="discord.com"] The domain to use for API requests
* @arg {Boolean} [options.rest.https=true] Whether to make requests to the Discord API over HTTPS (true) or HTTP (false)
* @arg {Number} [options.rest.latencyThreshold=30000] The average request latency at which Dysnomia will start emitting latency errors
* @arg {Number} [options.rest.port] The port to use for API requests. Defaults to 443 (HTTPS) or 80 (HTTP)
* @arg {Number} [options.rest.ratelimiterOffset=0] A number of milliseconds to offset the ratelimit timing calculations by
* @arg {Number} [options.rest.requestTimeout=15000] A number of milliseconds before REST requests are considered timed out
* @arg {Boolean} [options.restMode=false] Whether to enable getting objects over REST. Even with this option enabled, it is recommended that you check the cache first before using REST
Expand Down
1 change: 0 additions & 1 deletion lib/rest/RequestHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ class RequestHandler {
req = requester.request({
method: method,
host: this.options.domain,
port: this.options.port,
path: this.options.baseURL + finalURL,
headers: headers,
agent: this.options.agent
Expand Down

0 comments on commit e0fabad

Please sign in to comment.