mfdlabs / grid-bot

The underlying code used for the MFDLABS Grid Bot.
https://grid-bot.ops.vmminfra.net
Apache License 2.0
12 stars 1 forks source link

Null channels within private thread channels. #335

Closed nikita-petko closed 1 month ago

nikita-petko commented 2 months ago

Please read into discord-net/Discord.Net#2997 for more information.

Example exception:

Discord.Interactions.InteractionException: Error occurred executing execute script.
 ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Grid.Bot.Utility.ScriptLogger.LogScriptAsync(String script, ShardedInteractionContext context) in /home/runner/work/grid-bot/grid-bot/services/grid-bot/lib/utility/Implementation/ScriptLogger.cs:line 91
   at Grid.Bot.Interactions.Public.ExecuteScript.ExecuteScriptFromTextAsync(String script) in /home/runner/work/grid-bot/grid-bot/services/grid-bot/lib/commands/Modules/ExecuteScript.cs:line 317
   at Discord.Interactions.Builders.ModuleClassBuilder.<>c__DisplayClass11_0.<<CreateCallback>g__ExecuteCallback|1>d.MoveNext()
   --- End of inner exception stack trace ---
nikita-petko commented 1 month ago

Will update this branch with a patch and deploy it to production to temporarily mitigate this issue until the mentioned issue is rectified.