update http options to fit discord spec (#1656)

* Update Constants.js

* Update APIRequest.js

* Update Invite.js

* Update Constants.js
This commit is contained in:
Gus Caplan
2017-07-05 03:10:06 -05:00
committed by Amish Shah
parent bcbf834c95
commit e3cd000ec0
3 changed files with 5 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ class APIRequest {
}
gen() {
const API = `${this.client.options.http.host}/api/v${this.client.options.http.version}`;
const API = `${this.client.options.http.api}/v${this.client.options.http.version}`;
if (this.options.query) {
const queryString = (querystring.stringify(this.options.query).match(/[^=&?]+=[^=&?]+/g) || []).join('&');