Merged v4 and working on adding grpc api. INcomplete

This commit is contained in:
Kwoth
2024-04-16 13:26:44 +00:00
7 changed files with 107 additions and 35 deletions

View File

@@ -208,7 +208,6 @@ public sealed class Bot : IBot
if (baseType is null)
continue;
Log.Information(ft.Name);
var typeReader = (TypeReader)ActivatorUtilities.CreateInstance(Services, ft);
var typeArgs = baseType.GetGenericArguments();
_commandService.AddTypeReader(typeArgs[0], typeReader);