Closed Verzacliche closed 3 years ago
Hello, @Xzcen.
It seems like you are using Mono runtime. Discord.Net (which is the library Terracord uses for Discord connectivity) does not support Mono unfortunately. .NET Framework works fine if you are able to use it. I recommend .NET Framework >=4.7. You can obtain the official runtime from the vendor, Microsoft, here: https://dotnet.microsoft.com/download/dotnet-framework.
Ah I see, thanks for the reply!
On Sat, Mar 27, 2021, 2:16 PM Lloyd Dilley @.***> wrote:
Hello, @Xzcen https://github.com/Xzcen.
It seems like you are using Mono runtime. Discord.Net (which is the library Terracord uses for Discord connectivity) does not support Mono unfortunately. .NET Framework works fine if you are able to use it. I recommend .NET Framework >=4.7. You can obtain the official runtime from the vendor, Microsoft, here: https://dotnet.microsoft.com/download/dotnet-framework.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FragLand/terracord/issues/144#issuecomment-808667353, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCURGTPNXBGC6UBIYYTAJLTFVZ27ANCNFSM4Z4O3U3A .
I have no idea what's wrong with it, I have no experience with computer languages, I need help with this please.
This is what it looks inside the console.
Terracord: [03/27/2021 03:42:07 +00:00] [Info] Connecting to Discord... Terracord: [03/27/2021 03:42:08 +00:00] [Info] 03:42:08 Discord Discord.Net v2.3.0-dev-20210121.1 (API v6) Terracord: [03/27/2021 03:42:08 +00:00] [Debug] 03:42:08 Rest GET users/@me: 265.29 ms Terracord: [03/27/2021 03:42:08 +00:00] [Error] Unable to connect to Discord: Error converting value 0 to type 'Discord.Optional
1[Discord.UserProperties]'. Path 'public_flags', line 1, position 137. [Server API] Warning Plugin "Terracord" has had an unhandled exception thrown by one of its GamePostInitialize handlers: Newtonsoft.Json.JsonSerializationException: Error converting value 0 to type 'Discord.Optional1[Discord.UserProperties]'. Path 'public_flags', line 1, position 137. ---> System.ArgumentException: Could not cast or convert from System.Int64 to Discord.Optional
1[Discord.UserProperties]. at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable (System.Object value, System.Type initialType, System.Type targetType) [0x00067] in1[ArgsType].Invoke (ArgsType args) [0x0004d] in <f62aa61e7bd440208d5de15125316ac5>:0