summaryrefslogtreecommitdiff
path: root/website/src/ja/docs/reference
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-09-28 23:00:29 +0900
committerSho Sakuma <me@m1sk9.dev>2026-09-28 23:00:29 +0900
commitaf2feee95e7f6ebaef5466402789917ae65c0796 (patch)
tree1a4bcd9c9ea3a32ddfb861ce541ca0877ef3aa88 /website/src/ja/docs/reference
parente725de11e80abd9d96784c7f08a09893c852fef0 (diff)
downloadLunaticChat-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/ja/docs/reference')
-rw-r--r--website/src/ja/docs/reference/message-format.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/website/src/ja/docs/reference/message-format.md b/website/src/ja/docs/reference/message-format.md
index 3eddd1a..79c6745 100644
--- a/website/src/ja/docs/reference/message-format.md
+++ b/website/src/ja/docs/reference/message-format.md
@@ -17,6 +17,10 @@ layout: doc
| `{message}` | メッセージの内容 | すべて |
| `{channel}` | チャンネル名 | `channelMessageFormat` |
| `{server}` | サーバー名 | `crossServerGlobalChatFormat` |
+| `{world}` <Badge type="tip" text="v1.5.0~" /> | 送信者がいるワールド名.別サーバーから届いたダイレクトメッセージでは空になります | `directMessageFormat`, `channelMessageFormat` |
+| `{display_name}` <Badge type="tip" text="v1.5.0~" /> | 送信者の表示名.他のプラグインが設定した色も含みます | `channelMessageFormat` |
+| `{channel_id}` <Badge type="tip" text="v1.5.0~" /> | チャンネル ID | `channelMessageFormat` |
+| `{role}` <Badge type="tip" text="v1.5.0~" /> | チャンネル内での送信者の役割 (オーナー / モデレーター / メンバー) | `channelMessageFormat` |
## フォーマット一覧