Skip to content

feat: add Attachment support with colored sidebars#38

Open
kageiit wants to merge 1 commit into
kaicoh:mainfrom
kageiit:feat/attachments
Open

feat: add Attachment support with colored sidebars#38
kageiit wants to merge 1 commit into
kaicoh:mainfrom
kageiit:feat/attachments

Conversation

@kageiit
Copy link
Copy Markdown

@kageiit kageiit commented May 12, 2026

Summary

  • Adds Attachment struct with color, blocks, and fallback fields
  • Adds attachments field to Message with push_item builder support and max_item_20 validation
  • Validates attachment blocks with max_item_50 to match Slack's per-attachment block limit
  • Follows existing crate patterns: Builder derive, serde skip, validators

This enables colored sidebar rendering in Slack webhook messages — the only mechanism Slack provides for message-level color accents.

Adds Attachment struct with color, blocks, and fallback fields.
Adds attachments field to Message with push_item builder support.
Enables colored sidebar rendering in Slack webhook messages.
@kaicoh
Copy link
Copy Markdown
Owner

kaicoh commented May 12, 2026

@kageiit

Thanks for the PR — great work!

The comment link (https://api.slack.com/reference/messaging/attachments) appears to be broken. Would it be OK to replace it with https://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachments/? If you prefer, I can make the change and update the PR.

Thanks again.

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.

2 participants