Unclear support for `markdown_text` option.
まだ誰も着手していません。
評価
調査の方向性
Start at lib/slack/web/api/endpoints/chat.rb around line 196 and inspect the chat_postMessage argument handling alongside the linked Slack API reference. Reproduce the requests with markdown_text alone and with both markdown_text and text; done means the client behavior and documented Slack constraints agree, with the resulting behavior covered or clearly documented.
索引モデルが issue の本文から書いたものです。
説明
I was attempting to send markdown_text ref to the chat_postMessage but am encountering some issues.
The reference docs indicate that when passing markdown_text, text should be omitted:
Accepts message text formatted in markdown. This argument should not be used in conjunction with blocks or text. Limit this field to 12,000 characters.
If I do so, eg. .chat_postMessage({ markdown_text: "*Hello*"}), an ArgumentError is raised as I haven't passed text.
If I pass text and markdown_text, eg. .chat_postMessage({ markdown_text: "*Hello*", text: "*Hello*", mrkdwn: false}), the request goes through to the API but then fails with a Slack::Web::Api::Errors::MarkdownTextConflict error.
I believe the current workaround is to use Slack::Messages::Formatting.markdown or some other conversion process.
Is this an intentional gap in the API? Happy to raise a PR to amend if not.
- 主要言語
- Ruby
- スター
- 1.3k
- フォーク
- 222
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 3
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
slack-ruby/slack-ruby-client のほかの issue
-
new feature question
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
slack-ruby/slack-ruby-client#586 · コメント 3 件 ·
-
new feature web api
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
slack-ruby/slack-ruby-client#482 · コメント 5 件 ·
-
new feature
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
slack-ruby/slack-ruby-client#414 · コメント 14 件 ·
-
confirmed bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
slack-ruby/slack-ruby-client#409 · コメント 5 件 ·
-
question
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
slack-ruby/slack-ruby-client#385 ·
slack-ruby/slack-ruby-client の issue をすべて見る
似ている issue
-
user-reported
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
Kong/developer.konghq.com#7316 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
TheOdinProject/curriculum#31408 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
notch8/utk_knapsack#148 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
Homebrew/homebrew-cask#288729 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100