Closed matannahmani closed 2 months ago
Hi @matannahmani, thanks for reporting this. I've confirmed that this is a bug that I recently caused. I will make a quick fix.
The latest version (0.13.2) resolves this issue. Please upgrade to the latest (slack-edge@latest
). Thank you so much again for reporting this issue!
Hi, I've been working with the context.say method while trying to attach attachments I realized you must stringify the comments for it to work, but the type says it needs to be in the shape of
MessageAttachment[]
, can we adjust the client API to automatically stringify it to solve the problem? right now I have to ignore the TS check for the line to compile correctly I think the problem can be solved here if we add a simple check and stringify it automatically: https://github.com/seratch/slack-edge/blob/7dc09b1930a8d60d44ec237ae6a2c96a69f81795/src/app.ts#L826before
after
where the problem occur: