diff options
| author | Sho Sakuma <me@m1sk9.dev> | 2026-09-28 23:00:29 +0900 |
|---|---|---|
| committer | Sho Sakuma <me@m1sk9.dev> | 2026-09-28 23:00:29 +0900 |
| commit | af2feee95e7f6ebaef5466402789917ae65c0796 (patch) | |
| tree | 1a4bcd9c9ea3a32ddfb861ce541ca0877ef3aa88 /website/src/docs/reference | |
| parent | e725de11e80abd9d96784c7f08a09893c852fef0 (diff) | |
| download | LunaticChat-af2feee95e7f6ebaef5466402789917ae65c0796.tar.gz LunaticChat-af2feee95e7f6ebaef5466402789917ae65c0796.tar.bz2 LunaticChat-af2feee95e7f6ebaef5466402789917ae65c0796.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'website/src/docs/reference')
| -rw-r--r-- | website/src/docs/reference/message-format.md | 4 |
1 files changed, 4 insertions, 0 deletions
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` <Badge type="tip" text="v1.4.0~" /> app | `{message}` | Message content | All | | `{channel}` | Channel name | `channelMessageFormat` | | `{server}` | Server name | `crossServerGlobalChatFormat` | +| `{world}` <Badge type="tip" text="v1.5.0~" /> | World the sender is in. Empty for a direct message from another server | `directMessageFormat`, `channelMessageFormat` | +| `{display_name}` <Badge type="tip" text="v1.5.0~" /> | Display name of the sender, including colors set by other plugins | `channelMessageFormat` | +| `{channel_id}` <Badge type="tip" text="v1.5.0~" /> | Channel ID | `channelMessageFormat` | +| `{role}` <Badge type="tip" text="v1.5.0~" /> | Sender's role in the channel (Owner / Moderator / Member) | `channelMessageFormat` | ## Format List |
