Closed Granock closed 4 weeks ago
Issue is a result of RefectionUtil.GetMember using GetService without having a case for keyed Services. this results in trying to resolve the service without a key, and as the service is only registered as a keyed service, no service can be found.
Willing to pick this up.
Check The Docs
Verify Issue Source
Check your intents
Description
When using KeyedServices with Dependency-Injection Discord.Net is unable to crete the modules. Issue is caused by ReflectionUtil.GetMember method.
Version
3.16.0
Working Version
No response
Logs
Sample
Module-Definition:
Service-Registration:
Packages
Discord.Net 3.16.0
Environment
OS: win 11 10.0.22631 Architecture: x64 Dotnet: .net 8.0.400