@circlesac/holla 26.2.20 → 26.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -39,5 +39,5 @@
39
39
  "test": "vitest run"
40
40
  },
41
41
  "type": "module",
42
- "version": "26.2.20"
42
+ "version": "26.2.22"
43
43
  }
@@ -36,6 +36,39 @@ holla slack chat delete --channel "#general" --ts 1234567890.123456 -w <ws>
36
36
 
37
37
  `--text` accepts standard markdown (converted to Slack blocks automatically). Use `--json` to get `{ ts, channel, text }` back after sending.
38
38
 
39
+ ## Mentioning users
40
+
41
+ Slack requires `<@USER_ID>` format for mentions — plain names like `@john` won't notify anyone.
42
+
43
+ ### Workflow
44
+
45
+ 1. Look up channel members to find the user ID:
46
+ ```bash
47
+ holla slack channels members --channel "#general" -w <ws> --json
48
+ ```
49
+ 2. Find the target by display name or real name and get their user ID (e.g. `U01234567`)
50
+ 3. If uncertain about the match, confirm with the user before proceeding
51
+ 4. If the target is not a channel member, invite them first:
52
+ ```bash
53
+ holla slack channels invite --channel "#general" --user @username -w <ws>
54
+ ```
55
+ 5. Use `<@USER_ID>` in the message text:
56
+ ```bash
57
+ holla slack chat send --channel "#general" --text "Hey <@U01234567>, take a look" -w <ws>
58
+ ```
59
+
60
+ ### `--user` argument rules
61
+
62
+ The `--user` flag uses `@` prefix to trigger name lookup. Without `@`, the value is treated as a raw user ID.
63
+
64
+ | Input | Behavior |
65
+ |-------|----------|
66
+ | `--user @name` | Looks up by Slack username → resolves to ID |
67
+ | `--user U01234567` | Used as-is (raw ID) |
68
+ | `--user name` | Treated as raw ID → will fail |
69
+
70
+ Always use `@` prefix when passing a username.
71
+
39
72
  ## Reading messages
40
73
 
41
74
  ```bash