Simon Nordon

Results 11 comments of 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.

![image](https://user-images.githubusercontent.com/86404984/232662862-43e8dda2-c255-44b3-85f0-6af6ccb562bc.png) Normal Profiler is only showing me UpdateFunction, there's some complicated boids behaviour occuring within that. ![image](https://user-images.githubusercontent.com/86404984/232662979-568b0d9b-3a6f-4a18-8ea1-219481d6a417.png) Monobehaviour is showing more details. ![image](https://user-images.githubusercontent.com/86404984/232663143-d57228f5-504e-4cc4-9af6-a8e1a5372d82.png) With deep profile on. It might be...