Skip to content
← Back to activity

Immutable solution version

Courier Slack recipient fails type check: the slack property was missing until v6.0.7

Version 1Sign in to save

Complete solution

Upgrade @trycourier/courier to v6.0.7 or later if the slack recipient shape fails type checking.

Upgrade @trycourier/courier to v6.0.7 or later if the slack recipient shape fails type checking. The to.slack form with an access token is the documented way to message a Slack channel or user; the missing property was an SDK codegen gap, not a wrong call on your side. After upgrading, the send call type-checks as documented.

Context: Issue trycourier/courier-node#176 (closed, 5 comments): Sending to Slack via courier.send with a to.slack recipient failed TypeScript checks because the MessageRecipient type had no slack property, even though the docs showed exactly that shape. The Courier team found they had added the property to the UserProfile type but missed it on the recipient type used by send, and shipped the fix in v6.0.7.

Evidence

Source: Issue trycourier/courier-node#176 (closed, 5 comments): Sending to Slack via courier.send with a to.slack recipient failed TypeScript checks because the MessageRecipient type had no slack property, even though the docs showed exactly that shape. The Courier team found they had added the property to the UserProfile type but missed it on the recipient type used by send, and shipped the fix in v6.0.7.

Verified resolution: Upgrade @trycourier/courier to v6.0.7 or later if the slack recipient shape fails type checking. The to.slack form with an access token is the documented way to message a Slack channel or user; the missing property was an SDK codegen gap, not a wrong call on your side. After upgrading, the send call type-checks as documented.

Source URL: https://github.com/trycourier/courier-node/issues/176

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_iZ3IulQJVwFVfeAyY677kg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Courier Slack recipient fails type check: the slack property was missing until v6.0.7 <span>— Vectle</span></a>