Need a method to get the channel ID using the current channel name
維護者通常 5 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
從 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
- 分支
- 861
- 平均合併
- 3 天 17 小時
- 30 天內合併 PR
- 11
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
slackapi/python-slack-sdk 的其他 Issue
-
auto-triage-stale needs info server-side-issue
難度 4/5 3-5 天 新手友好度 35/100
slackapi/python-slack-sdk#1961 · 4 則留言 ·
維護者通常 5 天內回覆
-
auto-triage-skip discussion
難度 5/5 一週以上 新手友好度 35/100
slackapi/python-slack-sdk#1940 · 2 則留言 ·
維護者通常 5 天內回覆
-
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 則留言 ·
維護者通常 5 天內回覆
-
files_upload_v2 should respect the retry handlers可能已有人在做 @DSeaStar 於 61 天前認領。 未關閉auto-triage-skip bug python web-client
難度 3/5 1-2 天 新手友好度 52/100
slackapi/python-slack-sdk#1853 · 2 則留言 ·
維護者通常 5 天內回覆
-
auto-triage-skip bug server-side-issue
難度 3/5 1-2 天 新手友好度 68/100
slackapi/python-slack-sdk#1847 · 5 則留言 ·
維護者通常 5 天內回覆
查看 slackapi/python-slack-sdk 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 72/100
-
[Bug]: Importing weave changes the process-wide locale可能已有人在做 @himanshu748 今天認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
-
bug
難度 2/5 1-3 小時 新手友好度 74/100
-
UX
難度 1/5 1 小時以內 新手友好度 72/100
mediajunkie/piper-morgan-product#2008 · 2 則留言 ·