# 为群聊添加插件出口，类似于 \`after-chat-channel-username\`

**URL:** <https://meta.discourse.org/t/add-plugin-outlet-for-group-chats-similar-to-after-chat-channel-username/387275>\
**Category:** Feature\
**Tags:** chat\
**Created:** [2025 年10 月 31 日 14:35 UTC](https://meta.discourse.org/t/add-plugin-outlet-for-group-chats-similar-to-after-chat-channel-username/387275 "2025-10-31T14:35:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
发布日期： [2025 年11 月 1 日 00:58 UTC](https://meta.discourse.org/t/add-plugin-outlet-for-group-chats-similar-to-after-chat-channel-username/387275/3 "2025-11-01T00:58:45Z")

</div>

据我所见，该插件不存在于群组的原因是 outlet 只有一个参数——发送消息的用户。

> <https://github.com/discourse/discourse/blob/main/plugins%2Fchat%2Fassets%2Fjavascripts%2Fdiscourse%2Fcomponents%2Fchannel-name%2Findex.gjs#L61-L66>

> <https://github.com/discourse/discourse/blob/main/plugins%2Fchat%2Fassets%2Fjavascripts%2Fdiscourse%2Fcomponents%2Fchannel-name%2Findex.gjs#L81-L88>

---

_[View the full topic](https://meta.discourse.org/t/add-plugin-outlet-for-group-chats-similar-to-after-chat-channel-username/387275)._
