C
C#3mo ago
bornacheck

✅ Obscure error in Discord.Net

I'm getting an error in Discord.Net and have googled it to no avail. The code behind it was the normal discord.net example code and I have seen it was identical but it would not work.
INFO 3:11:12.604 AM 3/28/2024 Discord.Net v3.14.1 (API v10)
INFO 3:11:12.649 AM 3/28/2024 Connecting
INFO 3:11:13.776 AM 3/28/2024 Connected
ERROR 3:11:13.951 AM 3/28/2024 Error handling Dispatch (GUILD_AVAILABLE)
INFO 3:11:23.987 AM 3/28/2024 Ready
>
INFO 3:11:12.604 AM 3/28/2024 Discord.Net v3.14.1 (API v10)
INFO 3:11:12.649 AM 3/28/2024 Connecting
INFO 3:11:13.776 AM 3/28/2024 Connected
ERROR 3:11:13.951 AM 3/28/2024 Error handling Dispatch (GUILD_AVAILABLE)
INFO 3:11:23.987 AM 3/28/2024 Ready
>
14 Replies
bornacheck
bornacheck3mo ago
I know it's been 1.5 days since I've written this post
Kouhai /人◕ ‿‿ ◕人\
Can you show your code?
bornacheck
bornacheck3mo ago
It's drastically different from now
Kouhai /人◕ ‿‿ ◕人\
But you're still having the same problem? Error handling Dispatch (GUILD_AVAILABLE)
bornacheck
bornacheck3mo ago
I left it on for a while and it was able to resolve itself because it kept disconnecting and reconnecting so I tried putting some code in that disconnects and reconnects but to no avail I cannot show the code at the moment but I can in a few minutes
Kouhai /人◕ ‿‿ ◕人\
Take your time
bornacheck
bornacheck3mo ago
@Kouhai /人◕ ‿‿ ◕人\ Here is most of the project (it excludes some things like bin and obj)
Kouhai /人◕ ‿‿ ◕人\
Sorry, I don't download random zip files, can you upload the code on github?
bornacheck
bornacheck3mo ago
Ok https://github.com/bornacheck/adiscordbot I know I put my token in there but Discord sent me that message and so that token wouldn't work anymore @Kouhai /人◕ ‿‿ ◕人\ Not sure if you saw that message from earlier but hopefully this is noticed
Kouhai /人◕ ‿‿ ◕人\
Did you downgrade discord.net to 3.8.1? Well, the culprit is <InvariantGlobalization>true</InvariantGlobalization> in your csproj You can make it false and it should work <InvariantGlobalization>false</InvariantGlobalization> @string? Borna { get; set; }
bornacheck
bornacheck3mo ago
Yes I thought that would work because my other project was that and it worked Let me try making that false
Kouhai /人◕ ‿‿ ◕人\
I see, yeah you don't need to downgrade it, <InvariantGlobalization>false</InvariantGlobalization> should fix it :InaNod:
bornacheck
bornacheck3mo ago
It worked! Thanks for the help
Kouhai /人◕ ‿‿ ◕人\
:ThumbsUp: You can /close the thread if everything is good
Want results from more Discord servers?
Add your server
More Posts