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/ja/docs/reference/message-format.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'website/src/ja/docs/reference') 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}` | 送信者がいるワールド名.別サーバーから届いたダイレクトメッセージでは空になります | `directMessageFormat`, `channelMessageFormat` | +| `{display_name}` | 送信者の表示名.他のプラグインが設定した色も含みます | `channelMessageFormat` | +| `{channel_id}` | チャンネル ID | `channelMessageFormat` | +| `{role}` | チャンネル内での送信者の役割 (オーナー / モデレーター / メンバー) | `channelMessageFormat` | ## フォーマット一覧 -- cgit v1.2.1