FabioZumbi12 / SEDiscordBridge

A Torch plugin to connect the SE server to Discord
MIT License
13 stars 11 forks source link

[Bug] Troch crash when I send "!longhelp" command in discord #8

Closed szczepix closed 6 years ago

szczepix commented 6 years ago

I try get response for all Torch commands, so i write on #torch-plugin-cmd channel on Discord ;;!longhelp and Torch have a Crash.


16:29:38.2862 [INFO]   SEDicordBridge: Server ran command '!help'
16:29:45.3836 [FATAL]  Initializer: System.ArgumentException: Max message length is 2000
   at DSharpPlus.Net.DiscordApiClient.<CreateMessageAsync>d__39.MoveNext()
System.ArgumentException: Max message length is 2000
   at DSharpPlus.Net.DiscordApiClient.<CreateMessageAsync>d__39.MoveNext()
16:29:45.3836 [FATAL]  Initializer: System.AggregateException: One or more errors occurred. ---> System.ArgumentException: Max message length is 2000
   at DSharpPlus.Net.DiscordApiClient.<CreateMessageAsync>d__39.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at SEDiscordBridge.DiscordBridge.<>c__DisplayClass15_0.<Discord_MessageCreated>b__0() in D:\SpaceEngineersMod\TorchPlugins\SEDiscordBridge\SEDiscordBridge\DiscordBridge.cs:line 160
   at Sandbox.MySandboxGame.ProcessInvoke()
   at Sandbox.MySandboxGame.Update()
   at Sandbox.Engine.Platform.Game.UpdateInternal()
   at Sandbox.Engine.Platform.Game.RunSingleFrame()
   at Sandbox.Engine.Platform.FixedLoop.<>c__DisplayClass1.<Run>b__0()
   at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback)
   at Sandbox.Engine.Platform.Game.RunLoop()
   at Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen)
   at Torch.VRageGame.DoStart()
   at Torch.VRageGame.Run()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
---> (Inner Exception #0) System.ArgumentException: Max message length is 2000
   at DSharpPlus.Net.DiscordApiClient.<CreateMessageAsync>d__39.MoveNext()<---

System.AggregateException: One or more errors occurred. ---> System.ArgumentException: Max message length is 2000
   at DSharpPlus.Net.DiscordApiClient.<CreateMessageAsync>d__39.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at SEDiscordBridge.DiscordBridge.<>c__DisplayClass15_0.<Discord_MessageCreated>b__0() in D:\SpaceEngineersMod\TorchPlugins\SEDiscordBridge\SEDiscordBridge\DiscordBridge.cs:line 160
   at Sandbox.MySandboxGame.ProcessInvoke()
   at Sandbox.MySandboxGame.Update()
   at Sandbox.Engine.Platform.Game.UpdateInternal()
   at Sandbox.Engine.Platform.Game.RunSingleFrame()
   at Sandbox.Engine.Platform.FixedLoop.<>c__DisplayClass1.<Run>b__0()
   at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback)
   at Sandbox.Engine.Platform.Game.RunLoop()
   at Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen)
   at Torch.VRageGame.DoStart()
   at Torch.VRageGame.Run()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
---> (Inner Exception #0) System.ArgumentException: Max message length is 2000
   at DSharpPlus.Net.DiscordApiClient.<CreateMessageAsync>d__39.MoveNext()<---

16:29:45.4036 [FATAL]  Initializer: System.ArgumentException: Max message length is 2000
   at DSharpPlus.Net.DiscordApiClient.<CreateMessageAsync>d__39.MoveNext()
System.ArgumentException: Max message length is 2000
   at DSharpPlus.Net.DiscordApiClient.<CreateMessageAsync>d__39.MoveNext()