C
C#9mo 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
bornacheckOP9mo ago
I know it's been 1.5 days since I've written this post
Kouhai
Kouhai9mo ago
Can you show your code?
bornacheck
bornacheckOP9mo ago
It's drastically different from now
Kouhai
Kouhai9mo ago
But you're still having the same problem? Error handling Dispatch (GUILD_AVAILABLE)
bornacheck
bornacheckOP9mo 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
Kouhai9mo ago
Take your time
bornacheck
bornacheckOP9mo ago
@Kouhai /人◕ ‿‿ ◕人\ Here is most of the project (it excludes some things like bin and obj)
Kouhai
Kouhai9mo ago
Sorry, I don't download random zip files, can you upload the code on github?
bornacheck
bornacheckOP9mo 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
Kouhai9mo ago
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
bornacheckOP9mo ago
Yes I thought that would work because my other project was that and it worked Let me try making that false
Kouhai
Kouhai9mo ago
I see, yeah you don't need to downgrade it, <InvariantGlobalization>false</InvariantGlobalization> should fix it :InaNod:
bornacheck
bornacheckOP9mo ago
It worked! Thanks for the help
Kouhai
Kouhai9mo ago
:ThumbsUp: You can /close the thread if everything is good
Want results from more Discord servers?
Add your server