mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
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:
@@ -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('&');
|
||||
|
||||
Reference in New Issue
Block a user