You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add DM support to message send, improve scope errors, show capabilities in auth status
- Add ResolveDM() to open DM conversations via conversations.open
- Auto-detect user vs channel targets in message send (supports @user, username, user ID)
- Add context-aware FormatSendError() with specific scope hints for DMs vs channels
- Add case-insensitive user lookup in resolver
- Add im:write and chat:write to user scopes in app manifest
- Add capabilities section to auth status output
- Update help text, examples, and docs for DM sending
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/src/content/docs/commands.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -224,24 +224,33 @@ Quick actions:
224
224
Edit: slackbuzz message edit #general <ts> "new text"
225
225
```
226
226
227
-
### `message send <channel> <text>`
227
+
### `message send <channel|user> <text>`
228
228
229
-
Send a message to a channel or DM.
229
+
Send a message to a channel or DM. The first argument accepts a `#channel-name`, channel ID, `@username`, username, or user ID. When the target looks like a user, the CLI automatically opens a DM conversation via `conversations.open`.
230
+
231
+
**DM sending requires `im:write` and `chat:write` user token scopes.** Apps created with `slackbuzz app create` include these scopes by default. For existing apps, add the scopes at api.slack.com/apps > OAuth & Permissions.
230
232
231
233
```sh
232
234
# Send to a channel
233
235
slackbuzz message send #general "Hello from the terminal!"
234
236
235
-
# Send a DM
237
+
# Send a DM by @username
236
238
slackbuzz message send @sarah "Quick question about the API"
237
239
240
+
# Send a DM by username (no @ needed)
241
+
slackbuzz message send herman "Hey, got a minute?"
242
+
243
+
# Send a DM by user ID
244
+
slackbuzz message send U02P3QC5H24 "Direct message by ID"
0 commit comments