From dfcfd2d4f53590faf29f3192eab235ffcace6bf2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 25 Aug 2017 16:15:40 +0300 Subject: fixes #845 ([Discord] Adding a new contact causes "Only bots can use this endpoint" error) --- protocols/Discord/src/proto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Discord/src/proto.cpp') diff --git a/protocols/Discord/src/proto.cpp b/protocols/Discord/src/proto.cpp index 68fb32d8a8..ace96630cb 100644 --- a/protocols/Discord/src/proto.cpp +++ b/protocols/Discord/src/proto.cpp @@ -252,7 +252,7 @@ int CDiscordProto::AuthRequest(MCONTACT hContact, const wchar_t*) return 1; // error JSONNode root; root << WCHAR_PARAM("username", wszUsername) << INT_PARAM("discriminator", iDiscriminator); - AsyncHttpRequest *pReq = new AsyncHttpRequest(this, REQUEST_POST, "/users/@me/relationships", &CDiscordProto::OnReceiveAuth, &root); + AsyncHttpRequest *pReq = new AsyncHttpRequest(this, REQUEST_POST, "/users/@me/relationships", nullptr, &root); pReq->pUserInfo = (void*)hContact; Push(pReq); return 0; -- cgit v1.2.3