mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +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) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue