mirror of
https://github.com/danbulant/discord.js
synced 2026-07-03 02:00:43 +00:00
Webpack build for branch master: 66cc5b2b53
This commit is contained in:
parent
e3fb862cb7
commit
e2bca6763f
2 changed files with 2 additions and 2 deletions
|
|
@ -24054,7 +24054,7 @@ class APIRequest {
|
||||||
const request = snekfetch[this.method](`${API}${this.path}`);
|
const request = snekfetch[this.method](`${API}${this.path}`);
|
||||||
|
|
||||||
if (this.options.auth !== false) request.set('Authorization', this.getAuth());
|
if (this.options.auth !== false) request.set('Authorization', this.getAuth());
|
||||||
if (this.options.reason) request.set('X-Audit-Log-Reason', this.options.reason);
|
if (this.options.reason) request.set('X-Audit-Log-Reason', encodeURIComponent(this.options.reason));
|
||||||
if (!this.rest.client.browser) request.set('User-Agent', this.rest.userAgentManager.userAgent);
|
if (!this.rest.client.browser) request.set('User-Agent', this.rest.userAgentManager.userAgent);
|
||||||
|
|
||||||
if (this.options.files) {
|
if (this.options.files) {
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue