`message_replied` event missing text property in typescript
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- typescript
- 領域
- api
調査の方向性
MessageRepliedEvent インターフェースの TypeScript 定義から始め、例で使用されている message_replied ハンドラー型を追跡します。イベントドキュメントの text プロパティが表現されていることを確認し、message.message.text が報告されたエラーなしで型チェックを通過することを検証します。
索引モデルが issue の本文から書いたものです。
説明
Description
The text property does not exist on MessageRepliedEvent interface in typescript
What type of issue is this? (place an x in one of the [ ])
- bug
- enhancement (feature request)
- question
- documentation related
- example code related
- testing related
- discussion
Requirements (place an x in each of the [ ])
- I've read and understood the Contributing guidelines and have done my best effort to follow them.
- I've read and agree to the Code of Conduct.
- I've searched for any related issues and avoided creating a duplicate issue.
Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: 3.12.1
node version: 16.3.2
OS version(s): MacOS 12.4
Steps to reproduce:
slackApp.message(subtype("message_replied"), async ({ message }) => {
if (message.subtype === "message_replied") {
const messageThreadId = message.message.thread_ts;
// Find the socket for the given thread ID
for (const connection in openConnections) {
const connectionProps = openConnections[connection];
if (connectionProps.thread === messageThreadId) {
connectionProps.socket.send(message.message.text); <---
}
}
}
})
Expected result:
message.message.text is type string per event documentation:
https://api.slack.com/events/message/message_replied
Actual result:
Property 'text' does not exist on type 'MessageEvent & { thread_ts: string; reply_count: number; replies: MessageEvent[]; }'.
Property 'text' does not exist on type 'MessageChangedEvent & { thread_ts: string; reply_count: number; replies: MessageEvent[]; }'
Attachments:

- 主要言語
- TypeScript
- スター
- 3.4k
- フォーク
- 693
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 67
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
slackapi/node-slack-sdk のほかの issue
-
auto-triage-skip enhancement pkg:web-api
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
slackapi/node-slack-sdk#2607 · コメント 2 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
`SlackListsItem FieldMessage.message` type does not match API response shape対応中かも @AjTheSpidey が 202 日前に担当しました。 オープンarea:typescript auto-triage-skip bug pkg:web-api
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
slackapi/node-slack-sdk#2598 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Missing TypeScript response type for files.uploadV2対応中かも @Yshuro が 6 日前に担当しました。 オープンarea:typescript auto-triage-skip bug pkg:web-api
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
slackapi/node-slack-sdk#2459 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Docs/types: document `broadcast_delete` on chat.delete (undo reply_broadcast)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea:typescript enhancement pkg:web-api semver:patch
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
slackapi/node-slack-sdk#2815 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
auto-triage-stale
難易度 3/5 1〜2日 初心者へのやさしさ 75/100
slackapi/node-slack-sdk#2791 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
slackapi/node-slack-sdk の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
agilepathway/label-checker#1015 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
bug P3
難易度 1/5 1時間未満 初心者へのやさしさ 89/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
react-component/image#541 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信