From af2feee95e7f6ebaef5466402789917ae65c0796 Mon Sep 17 00:00:00 2001 From: Sho Sakuma Date: Mon, 28 Sep 2026 23:00:29 +0900 Subject: feat(paper): add world, display_name, channel_id and role chat placeholders Operators asked for more of the sender's context in chat formats than the name alone. {world} covers direct messages and channel chat; the channel details and the sender's display name and role only exist for channel chat, so only that format accepts them. A direct message from another server renders {world} empty: the relay does not carry the sender's world, and adding it would need a protocol bump and a coordinated Velocity release for one placeholder. The renderer now accepts underscores so the snake_case names match as written. Co-Authored-By: Claude --- website/src/docs/reference/message-format.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'website/src/docs/reference') diff --git a/website/src/docs/reference/message-format.md b/website/src/docs/reference/message-format.md index 68fee84..b0976fa 100644 --- a/website/src/docs/reference/message-format.md +++ b/website/src/docs/reference/message-format.md @@ -17,6 +17,10 @@ These are the only settings `/lc reload` app | `{message}` | Message content | All | | `{channel}` | Channel name | `channelMessageFormat` | | `{server}` | Server name | `crossServerGlobalChatFormat` | +| `{world}` | World the sender is in. Empty for a direct message from another server | `directMessageFormat`, `channelMessageFormat` | +| `{display_name}` | Display name of the sender, including colors set by other plugins | `channelMessageFormat` | +| `{channel_id}` | Channel ID | `channelMessageFormat` | +| `{role}` | Sender's role in the channel (Owner / Moderator / Member) | `channelMessageFormat` | ## Format List -- cgit v1.2.1