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