Skip to content

Add unfurl_links and unfurl_media to Message#130

Open
MaxLeiter wants to merge 1 commit intoraycharius:mainfrom
MaxLeiter:max/msg-unfurl-issue-119
Open

Add unfurl_links and unfurl_media to Message#130
MaxLeiter wants to merge 1 commit intoraycharius:mainfrom
MaxLeiter:max/msg-unfurl-issue-119

Conversation

@MaxLeiter
Copy link
Copy Markdown

@MaxLeiter MaxLeiter commented Jan 11, 2024

Closes #119

I added it by following where the other values like threadTs are used/tested, but I could have missed something. I can't run tests because of some TS issues:

src/internal/exception/error.ts:6:11 - error TS2339: Property 'captureStackTrace' does not exist on type 'ErrorConstructor'.

Should @types/node be added as a dev dependency?

I personally prefer snake_case for the parameters (so unfurl_links instead of unfurlLinks) but I kept it camelCase for consistency with the other code.

@ekremney
Copy link
Copy Markdown

ekremney commented Feb 6, 2024

@raycharius could you please have a look this PR?

james-gre added a commit to ExodusForks/slack-block-builder that referenced this pull request Jan 11, 2026
Cherry-picked from PR raycharius#130 with bug fixes:
- Fixed duplicate UnfurlLinks enum key (should be UnfurlMedia)
- Fixed unfurlMedia method using wrong Prop (UnfurlLinks → UnfurlMedia)
- Fixed unfurl-media.ts test using wrong Prop references

Closes raycharius#119
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unfurl_links and unfurl_media to Message

2 participants