I'm not sure how the Dependency Injection works in DSharpPlus but if it's anything like D.NET, it will require a service Container.
That service container should also include the EntityConvertor singleton. Other services from Miunie.Core should be registered manually using whatever way the CommandHandler of DSharpPlus already has.
The Actual Profile command should only delegate to ProfileService.
ProfileService will expect a MiunieUser and MiunieChannel as a parameter, meaning the EntityConvertor needs to be used to convert from Discord's IGuildUser (or similar) to MiunieUser.
:information_source: The EntityConvertor will still be used to create a MiunieChannel from the DSharpPlus channel obejct, even though it's just creating a new instance of MiunieChannel and filling in the IDs.
If the profile service does not exist at the time of completion of this, leave it blank and create a new issue for it to be finished after the ProfileService.
I'm not sure how the Dependency Injection works in DSharpPlus but if it's anything like D.NET, it will require a service Container.
That service container should also include the
EntityConvertor
singleton. Other services fromMiunie.Core
should be registered manually using whatever way the CommandHandler of DSharpPlus already has.The Actual Profile command should only delegate to
ProfileService
.ProfileService
will expect aMiunieUser
andMiunieChannel
as a parameter, meaning theEntityConvertor
needs to be used to convert from Discord'sIGuildUser
(or similar) toMiunieUser
.:information_source: The
EntityConvertor
will still be used to create aMiunieChannel
from the DSharpPlus channel obejct, even though it's just creating a new instance ofMiunieChannel
and filling in the IDs.If the profile service does not exist at the time of completion of this, leave it blank and create a new issue for it to be finished after the
ProfileService
.