mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
get rid of user agent errors (#990)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user