docs(teams): a slash-command answer narrower than public is ephemeral
TEAMS.md §7.1 and MODULE_API.md registerSlashCommands now state the rule: the rung check decides whether to answer, and an answer whose audience is above the public rung is returned ephemeral: true because a channel reply reaches everyone in the channel. Records module-uo's /guild fix (Module-uo#46), the same rule as module-rust D127. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t
This commit is contained in:
@@ -1877,6 +1877,14 @@ none is built.
|
||||
`/teams/:slug`. For a caller with no linked account it returns the **public** projection plus an
|
||||
ephemeral "link your account for more" — see §9 answer 5.
|
||||
|
||||
**A permitted answer narrower than public goes to the caller alone.** The handler's rung check
|
||||
decides *whether* to answer. It does not decide who else reads the reply. A reply posted into a
|
||||
channel is read by everyone in it, so an answer whose audience is above the public rung is returned
|
||||
`ephemeral: true`. An answer the public may see stays public. module-uo's `/guild` does this for both
|
||||
the list and one guild's detail whenever the shard's `guilds` audience is above `anonymous`
|
||||
([Module-uo#46](https://gitea.whitlocktech.com/RunicGateway/Module-uo/issues/46)). It is the same rule
|
||||
as module-rust's D127 (`docs/modules/rust/PLAN.md`).
|
||||
|
||||
### 7.2 Notifications bridge
|
||||
|
||||
> **Amended after building it (phase 8, 2026-08-18).** The shape below is what was designed; five
|
||||
|
||||
Reference in New Issue
Block a user