diff options
author | George Hazan <george.hazan@gmail.com> | 2024-10-27 17:42:04 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-10-27 17:42:09 +0300 |
commit | 0a641111470bf1910bed3fe1cd57f31c6c1ecfce (patch) | |
tree | 5481d28959399223ae37bdfe91d332d8393e71ab /protocols/Discord/src/http.cpp | |
parent | 0ba90e004d457b50c5ae16993c22d48336f58959 (diff) |
fixes #4761 (Ability to use third party discord reimplementations)
Diffstat (limited to 'protocols/Discord/src/http.cpp')
-rw-r--r-- | protocols/Discord/src/http.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Discord/src/http.cpp b/protocols/Discord/src/http.cpp index b349eac36b..c5d5e1e0c0 100644 --- a/protocols/Discord/src/http.cpp +++ b/protocols/Discord/src/http.cpp @@ -41,7 +41,7 @@ static LONG g_reqNum = 0; AsyncHttpRequest::AsyncHttpRequest(CDiscordProto *ppro, int iRequestType, LPCSTR _url, MTHttpRequestHandler pFunc, JSONNode *pRoot)
{
if (*_url == '/') { // relative url leads to a site
- m_szUrl = "https://discord.com/api/v9";
+ m_szUrl = ppro->m_szApiUrl;
m_szUrl += _url;
m_bMainSite = true;
}
|