mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 01:31:29 +00:00
get rid of user agent errors (#990)
This commit is contained in:
parent
36be4c47f6
commit
9c59b649ad
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class APIRequest {
|
||||||
} else if (this.data) {
|
} else if (this.data) {
|
||||||
apiRequest.send(this.data);
|
apiRequest.send(this.data);
|
||||||
}
|
}
|
||||||
apiRequest.set('User-Agent', this.rest.userAgentManager.userAgent);
|
if (!this.rest.client.browser) apiRequest.set('User-Agent', this.rest.userAgentManager.userAgent);
|
||||||
return apiRequest;
|
return apiRequest;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue