Simon Nordon
Simon Nordon
I was able to resolve my issue with a workaround but not a good long term solution. I checked out the put request the bot was sending and the emoji...
`slashCmds = bot.getSlashCommands(botID).json()` `from discum.utils.slash import SlashCommander` `s = SlashCommander(slashCmds)` `data = s.get(['name_of_the_slash_command'], inputs={'name_of_the_options_in_the_slash_command':'the_options_input'})` `bot.triggerSlashCommand(botID,channelID=channelID,guildID=guildID, data=data)` The first 3 lines of the code is retrieving and parsing the slash command...
I'm not 100% sure what you mean, but if you're registering multiple concrete classes to a single interface, they will be implicitly registered as a collection: https://vcontainer.hadashikick.jp/registering/register-collection So in your...
Instead of using Container.Instantiate() you should be calling LifetimeScope.CreatChildFromPrefab(yourPrefab) Here's how you can instantiate a gameobject with a scope on it. ``` csharp public MyBehaviour prefab; Protected override void Configure(IContainerBuilder...
Does the singleton object have to be a prefab? It would be easier if it existed in the scene: ```csharp builder.RegisterComponentInHeirachy(); ``` otherwise I think you would have to use...
I think I solved my own problem. I realize that if we take away monobehaviours. We would never re-inject dependencies into an object, it would be much easier to just...
It's possible to pass data into a prefab's GameObjectContext via a factory using this code: ``` public GameObject facadePrefab public override void InstallBindings() { Container.BindFactory() .FromSubContainerResolve() .ByNewPrefabInstaller(facadePrefab); } ``` The...
Should .WithParameter() be exclusive to Construction Methods? Maybe there's an argument that they should be supported with all Injection types.
Solved by using Deep Profiler.
 Normal Profiler is only showing me UpdateFunction, there's some complicated boids behaviour occuring within that.  Monobehaviour is showing more details.  With deep profile on. It might be...