Need a method to get the channel ID using the current channel name
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
slack_sdk.web.WebClient の同期および非同期のエントリーポイントから開始し、既存のチャンネル関連メソッドを確認します。要求されているチャンネル名による検索を、非推奨の channels.info および回避策である chat.postMessage と比較します。一時的なメッセージを投稿せずにチャンネル ID を確実に取得して保存できる方法を公開できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
We need a way to get the channel ID when provided the current channel name as an input. Previously this could be done using the channels.info API method, but now with that method fully deprecated and disabled, we don't have any other reliable method of doing this. We could theoretically post a new message to the channel using chat.postMessage, which returns the channel ID, then remove that message, but this seems like overkill.
The use case is that a user provides a channel name as input, and we want to convert that channel name to an ID and store that ID for later use when posting messages. Obviously the name may change over time, so using the channel ID is ideal.
Category
- slack_sdk.web.WebClient (sync/async) (Web API client)
- slack_sdk.webhook.WebhookClient (sync/async) (Incoming Webhook, response_url sender)
- slack_sdk.models (UI component builders)
- slack_sdk.oauth (OAuth Flow Utilities)
- slack_sdk.socket_mode (Socket Mode client)
- slack_sdk.audit_logs (Audit Logs API client)
- slack_sdk.scim (SCIM API client)
- slack_sdk.rtm (RTM client)
- slack_sdk.signature (Request Signature Verifier)
- 主要言語
- Python
- スター
- 4k
- フォーク
- 857
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 17
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
slackapi/python-slack-sdk のほかの issue
-
needs info server-side-issue
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
slackapi/python-slack-sdk#1961 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
auto-triage-skip discussion
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
slackapi/python-slack-sdk#1940 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
chat_postMessage silently forwards thread_id to the API, so a threaded reply posts to the channelオープンauto-triage-skip enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
slackapi/python-slack-sdk#1923 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
auto-triage-skip bug python web-client
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
slackapi/python-slack-sdk#1853 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
auto-triage-skip bug server-side-issue
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
slackapi/python-slack-sdk#1847 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
slackapi/python-slack-sdk の issue をすべて見る
似ている issue
-
customer-reported
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Azure/azure-cli#34150 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
community-request
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
NVIDIA-NeMo/Curator#2464 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
WeblateOrg/translation-finder#1099 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
trezor/trezor-firmware#7997 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信