Andrii Horpenko

Results 9 comments of Andrii Horpenko

I’m not sure if it will actually work because AbilityBot does not have a constructor signature with MessageSender. Moreover, BaseAbilityBot creates DefaultSender. ![CA0E67FA-0E5A-44D6-BE35-CFC71BE6E254](https://user-images.githubusercontent.com/13716167/73801699-f1d9d080-47c3-11ea-9363-ac21ada3a8f6.png)

Okay, this sheds light on the issue. What is your way of mocking bot.execute or preventing it from connecting to actual Telegram servers(as stated in Wiki)?

Like anyway I have to replace a sender/silent object with mocked one BUT there’s no setter or public property field for this. As @addo37 says, the one workaround for now...

Okay, great! Should we keep this issue open? I mean maybe the owner will consider implementing this feature «out of the box» in the future.

Yeah, example code in Wiki may confuse some people. Thanks for a recommendation anyway!

What I did is passed `this` to the `AnalyseNewMember` class constructor and it worked like a charm🤷🏻‍♂️

@SizableShrimp this is no longer a thing on newer versions of Forge, tested in 1.18.2 and 1.19.3 environments. The issue may be closed now.

LTS backport has been merged into 1.18 branch: https://github.com/MinecraftForge/MinecraftForge/pull/9494 Just making sure you are aware 👍🏻

I can backport a fix to 1.18 if you could mention commit hash with a potential fix.