Closed TH3AL3X closed 3 years ago
I saw this, if i'm stupid Unity uses mono, so the only way i can do it is doing a server tcp/ip, but that is trash....
It's recommended to use the official GameSDK for communication between Unity and Discord. As you've discovered, this library does not support Unity.
It's recommended to use the official GameSDK for communication between Unity and Discord. As you've discovered, this library does not support Unity.
I just did a named pipe, is working fine, pd thanks for the info anyways
You should use the gamesdk but since you solved your issue I'll be closing this.
I am a skiddie script so do not bully me, I am trying to make a bot with framework for unity, and send messages when a player does X things, but I am not able to correct these errors, I suppose it will be because the discordnet uses the net core and is not supported
`[loading] [darkness] RaidDiscord UnityEngine.CoreModule >> Adding UnturnedPlayerComponent: PlayerComponent This server will automatically save every 1800 seconds MissingMethodException: void Discord.API.DiscordRestApiClient..ctor(Discord.Net.Rest.RestClientProvider,string,Discord.RetryMode,Newtonsoft.Json.JsonSerializer,Discord.RateLimitPrecision,bool) at Discord.WebSocket.DiscordSocketClient.CreateApiClient (Discord.WebSocket.DiscordSocketConfig config) [0x00020] in:0
at Discord.WebSocket.DiscordSocketClient..ctor (Discord.WebSocket.DiscordSocketConfig config) [0x00000] in :0
at Discord.WebSocket.DiscordSocketClient..ctor () [0x00006] in :0
at RaidDiscord.Main+d2.MoveNext () [0x00024] in <02485c242efb434e9228a6ad14dc454a>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9577ac7a62ef43179789031239ba8798>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <9577ac7a62ef43179789031239ba8798>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <9577ac7a62ef43179789031239ba8798>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <9577ac7a62ef43179789031239ba8798>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
at RaidDiscord.Main.b 4_0 () [0x0000c] in <02485c242efb434e9228a6ad14dc454a>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <9577ac7a62ef43179789031239ba8798>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <9577ac7a62ef43179789031239ba8798>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <9577ac7a62ef43179789031239ba8798>:0
at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <9577ac7a62ef43179789031239ba8798>:0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.<>c:b__0_0(Object, UnhandledExceptionEventArgs)
(Filename: Line: 0)`