feat[users]: add dm-channel command for group DM channel discovery#38
feat[users]: add dm-channel command for group DM channel discovery#38AmethystLiang merged 2 commits intostablyai:mainfrom
Conversation
|
@nwparker Thoughts on moving the location of this command to With Also happy to leave as is / for you to do the rename given these review cycle times |
|
Hey @shhac — thanks for picking this up, the implementation looks clean. On the naming question: I'd keep it under One thought: what about Happy to rebase this onto main and get it across the finish line. Let me know! |
|
@AmethystLiang so when you're opening a group DM it would look like |
6f589e7 to
2cf4e0f
Compare
|
Changes made |
|
Looks good — merged! Thanks for picking this back up Paul, clean implementation. |
Summary
There's currently no way to discover group DM channels or send messages to a group of users via DM. This adds
agent-slack user dm-channelwhich resolves user handles/IDs to a DM or group DM channel ID viaconversations.open, making it possible to then message that channel like any other.This is a successor to #10, which was closed due to upstream repo structure changes before it could be merged.
Changes
user dm-channel <users...>command (accepts 1-8 user IDs or@handles)getDmChannelForUsersto resolve users and open the conversationTest plan
agent-slack user dm-channel @alice— returns 1:1 DM channel IDagent-slack user dm-channel @alice @bob— returns group DM channel IDagent-slack user dm-channel @alice @bob @charlie— returns group DM channel IDagent-slack message send <channel_id> "test"