-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update adapter.go #20
base: main
Are you sure you want to change the base?
Conversation
9718b12
to
ca98c42
Compare
Hey Patrik, I think you could be most flexible if your custom adapter maintains its own Hope this helps but let me know if you have further questions :) |
Hey Friedrich Thanks for your answer. You are of course right. I can use that pattern. But my point is: I can understand, if you want to keep your slack adapter minimal and thus don't want to have too many exported
Offering a |
So I gave this some more thought and while you are right that adding this function works well without making the While all of that can be solved, I wonder if you gave it another thought about implementing this on your side by having your own reference to a If you think it doesn't work or would introduce a lot of complexity on your side I would be interested in some more details, maybe a minimal example that showcases your difficulties? |
Yes, I can see your point now. You are absolutely right. I was assuming that writing the test is trivial. Basically it is the same test as for Send(), plus adding some mocked But sure, I will give it another thought about implementing this on my side and give you some feedback, should I run into difficulties. |
Yes, it worked and it did not introduce a lot of complexity on my side. So great!😃 However, I still think it would be useful for the user of the slack-adapter to offer such a So if you ever happen to want to introduce such a method, I would be willing to help with the TODOs still left for that to happen. Best and thanks for you help. |
First of all: I really like your joe-bot and the adapters that come with it.
Thanks for your great work!
However, I ran into a bit of a problem currently with the slack-adapter:
In one of my projects I use your slack adapter inside a custom joe-bot adapter.
This custom joe-bot adapter several custom send methods which used to use the Send()-method of your slack-adapter.
Since I now want to additionally send slack-blocks, when sending messages to slack, I need to be able to hand over a slack blocks message option to the slack API. However this is currently not possible, because the slack API is hidden inside your slack BotAdapter. But with offering a
SendWithSlackOpts(...)
-method, this could become easily available.What I used to do:
What I would like to do:
I wonder whether It would be possible to offer such a
SendWithSlackOpts(...)
-method?Or is there anything speaking against it?