Discord-user-bots icon indicating copy to clipboard operation
Discord-user-bots copied to clipboard

Is there any replacement for join_guild function.

Open nabeel77 opened this issue 3 years ago • 4 comments

Hi,

The join_guild function is deprecated. Is there any replacement for it? I also send you a request on discord if you would accept. I am Thrall#7810. Really need to discuss this and need help with this.

nabeel77 avatar Feb 08 '22 13:02 nabeel77

For anyone with the same question, there will be an update soon with a working join_guild function once Node 18.0 is released.

Sopur avatar Mar 02 '22 00:03 Sopur

@Sopur any update on join_guild function given Node 18.0 was released about 2 weeks ago. https://nodejs.org/en/blog/announcements/v18-release-announce/

Imraj avatar May 09 '22 13:05 Imraj

@Imraj I've tried looking into the task, but it is very difficult. Discord does a lot of hijacking throughout the native functions making it hard to see what Discord is really doing. It also runs before TamperMonkey's and GreasyMonkey's "// run-at document-start" functionality, making it annoying to deal with. I thought I could easily bypass discord's anti script with the native fetch but I guess I was too naive. However, I can say what I have found out: Joining guilds has nothing to do with any other API calls or even science calls, most likely uses captcha, forces your account to require phone verification if you include the correct headers but wrong information, and the way you fetch (That be browser fetching or Node-Fetch) makes no difference, as not even cURL works. Throughout many hours trying to get the join_guild function to work, I've been unsuccessful. If anyone finds out anything that could help, please message me on Discord at Sopur#3550.

Sopur avatar May 13 '22 00:05 Sopur

Yeah, all we need some solution on join_guild function.

rvdce avatar Mar 27 '23 14:03 rvdce

The join_guild method now works! The problem seemed to be header order/contents, so I made a custom HTTP client to mimic behavior of common browser clients, which seemed to do the trick. This allowed me to add support for other user-only methods too, such as a send_friend_request method.

Sopur avatar Jun 22 '24 01:06 Sopur