From ae77bfd1d1df50d8159e50fee4f7c5616cffe1b8 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 27 Nov 2020 01:37:01 -0500 Subject: set user-agent through ini --- discord/http.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'discord/http.hpp') diff --git a/discord/http.hpp b/discord/http.hpp index db60498..b664c86 100644 --- a/discord/http.hpp +++ b/discord/http.hpp @@ -13,6 +13,7 @@ class HTTPClient { public: HTTPClient(std::string api_base); + void SetUserAgent(std::string agent); void SetAuth(std::string auth); void MakeDELETE(std::string path, std::function cb); void MakeGET(std::string path, std::function cb); @@ -32,4 +33,5 @@ private: std::vector> m_futures; std::string m_api_base; std::string m_authorization; + std::string m_agent; }; -- cgit v1.2.3