summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/http.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-10-27 17:42:04 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-10-27 17:42:09 +0300
commit0a641111470bf1910bed3fe1cd57f31c6c1ecfce (patch)
tree5481d28959399223ae37bdfe91d332d8393e71ab /protocols/Discord/src/http.cpp
parent0ba90e004d457b50c5ae16993c22d48336f58959 (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.cpp2
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;
}