abaddon icon indicating copy to clipboard operation
abaddon copied to clipboard

Can't join servers

Open prorounak2005 opened this issue 2 years ago • 6 comments

I clicked on Discord > Accept Invite and then I tried to join a discord server. For ex this one -https://discord.com/invite/gogo and click on the ok button but I cannot join the server. :'(

Anyway to fix it ? I am using arch ( https://aur.archlinux.org/packages/abaddon ).

prorounak2005 avatar Jun 19 '22 10:06 prorounak2005

when you enter the link, does it show the preview? (server title + member count) and when you click ok does it show in the console POST /invites/gogo? the example you gave me works fine on my end

ouwou avatar Jun 19 '22 19:06 ouwou

when you enter the link, does it show the preview? (server title + member count) and when you click ok does it show in the console POST /invites/gogo? the example you gave me works fine on my end

Yes!! When I enter the link, it shows the server name and 25069 members but when I click on ok nothing happens.

ghost avatar Jun 19 '22 19:06 ghost

thats strange the only reason nothing would even print to console should be if the dialog doesnt return the OK response

can you try applying this patch and see what it displays in console when you click ok?

diff --git a/src/abaddon.cpp b/src/abaddon.cpp
index 2e8ecaa..03624c0 100644
--- a/src/abaddon.cpp
+++ b/src/abaddon.cpp
@@ -648,9 +648,10 @@ void Abaddon::ActionSetToken() {
 void Abaddon::ActionJoinGuildDialog() {
     JoinGuildDialog dlg(*m_main_window);
     auto response = dlg.run();
+    printf("%d %s\n", response, dlg.GetCode().c_str());
     if (response == Gtk::RESPONSE_OK) {
         auto code = dlg.GetCode();
-        m_discord.JoinGuild(code);
+        // m_discord.JoinGuild(code);
     }
 }

the part that actually joins the server is commented out since joining servers repeatedly (ie while testing) can temporarily restrict your account

ouwou avatar Jun 19 '22 20:06 ouwou

thats strange the only reason nothing would even print to console should be if the dialog doesnt return the OK response

can you try applying this patch and see what it displays in console when you click ok?

diff --git a/src/abaddon.cpp b/src/abaddon.cpp
index 2e8ecaa..03624c0 100644
--- a/src/abaddon.cpp
+++ b/src/abaddon.cpp
@@ -648,9 +648,10 @@ void Abaddon::ActionSetToken() {
 void Abaddon::ActionJoinGuildDialog() {
     JoinGuildDialog dlg(*m_main_window);
     auto response = dlg.run();
+    printf("%d %s\n", response, dlg.GetCode().c_str());
     if (response == Gtk::RESPONSE_OK) {
         auto code = dlg.GetCode();
-        m_discord.JoinGuild(code);
+        // m_discord.JoinGuild(code);
     }
 }

the part that actually joins the server is commented out since joining servers repeatedly (ie while testing) can temporarily restrict your account

Can u tell me how to add this patch ?

ghost avatar Jun 20 '22 03:06 ghost

if you have the repo cloned you can save it to a file and do git apply file.diff or just manually insert it yourself since its only 2 lines

ouwou avatar Jun 20 '22 04:06 ouwou

i just remembered that captchas can be shown sometimes when trying to join a server, which might be the issue here. i might try and handle that (show a dialog) or just remove the ability to join servers altogether since its prone to spam detection

ouwou avatar Jul 06 '22 08:07 ouwou

ive opted to remove it. maybe ill revisit it some other time but the captchas and spam filter are annoying to deal with right now

ouwou avatar Oct 06 '22 07:10 ouwou