Kink Wizard isn't working for me
Closed this issue · 0 comments
Automatic bug report
Generated at: 30/01/2020 21:45:24
Bot version: 2.0.0.0
Command message link: https://discordapp.com/channels/183031180814319616/387000847025963019/672558001114316841
Ran by: Quixylvre#9204 (110033701051604992)
In: Transformations (183031180814319616)
Full command: !kink wizard
Stack Trace
System.InvalidOperationException: The LINQ expression 'DbSet
.OrderBy(k => k.Category.ToString())' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to either AsEnumerable(), AsAsyncEnumerable(), ToList(), or ToListAsync(). See https://go.microsoft.com/fwlink/?linkid=2101038 for more information.
at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.g__CheckTranslated|8_0(ShapedQueryExpression translated, <>c__DisplayClass8_0& )
at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression)
at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression)
at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression)
at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor[TResult](Expression query)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass9_01.<Execute>b__0() at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQueryCore[TFunc](Object cacheKey, Func
1 compiler)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable1.GetEnumerator() at System.Collections.Generic.List
1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable
1 source)
at DIGOS.Ambassador.Plugins.Kinks.Wizards.KinkWizard.OnDisplayAsync(IMessageChannel channel) in /opt/digos/src/Plugins/DIGOS.Ambassador.Plugins.Kinks/Wizards/KinkWizard.cs:line 132
at DIGOS.Ambassador.Discord.Interactivity.Messages.InteractiveMessage.DisplayAsync(IMessageChannel channel) in /opt/digos/src/Discord/DIGOS.Ambassador.Discord.Interactivity/Messages/InteractiveMessage.cs:line 176
at DIGOS.Ambassador.Discord.Interactivity.Messages.InteractiveMessage.SendAsync(InteractivityService service, IMessageChannel channel) in /opt/digos/src/Discord/DIGOS.Ambassador.Discord.Interactivity/Messages/InteractiveMessage.cs:line 81
at DIGOS.Ambassador.Discord.Interactivity.InteractivityService.SendInteractiveMessageAsync(IMessageChannel channel, IInteractiveMessage message) in /opt/digos/src/Discord/DIGOS.Ambassador.Discord.Interactivity/InteractivityService.cs:line 137
at DIGOS.Ambassador.Discord.Interactivity.InteractivityServiceExtensions.SendPrivateInteractiveMessageAsync(InteractivityService this, ICommandContext context, UserFeedbackService feedback, InteractiveMessage message) in /opt/digos/src/Discord/DIGOS.Ambassador.Discord.Interactivity/InteractivityServiceExtensions.cs:line 68
at DIGOS.Ambassador.Plugins.Kinks.CommandModules.KinkCommands.RunKinkWizardAsync() in /opt/digos/src/Plugins/DIGOS.Ambassador.Plugins.Kinks/CommandModules/KinkCommands.cs:line 278
at Discord.Commands.ModuleClassBuilder.<>c__DisplayClass6_0.<g__ExecuteCallback|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Discord.Commands.CommandInfo.ExecuteInternalAsync(ICommandContext context, Object[] args, IServiceProvider services)
at Discord.Commands.CommandInfo.ExecuteInternalAsync(ICommandContext context, Object[] args, IServiceProvider services)
at Discord.Commands.CommandInfo.ExecuteInternalAsync(ICommandContext context, Object[] args, IServiceProvider services)
at Discord.Commands.CommandInfo.ExecuteAsync(ICommandContext context, IEnumerable1 argList, IEnumerable
1 paramList, IServiceProvider services)