# 使用 discourse-chat-integration 插件设置 Discord 通知

**URL:** https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600
**Category:** Integrations
**Tags:** chat-integration, how-to
**Created:** [2017年七月21日 15:04 UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600 "2017-07-21T15:04:04Z")
**Posts on this page:** 1
**Showing post:** 76

<div class="post-metadata">

### Author: ![mcdanlj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcdanlj/32/131829_2.png) [@mcdanlj](https://meta.discourse.org/u/mcdanlj)
#### Post date: [2025年二月18日 12:50 UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/76 "2025-02-18T12:50:59Z")

</div>

看起来 discourse-chat-integration 插件未能正确渲染 [Hashtags are getting a #makeover](https://meta.discourse.org/t/hashtags-are-getting-a-makeover/248866?u=mcdanlj) 中的分类引用。

例如：此评论：

> **[Text engraving inverted](https://forum.makerforums.info/t/text-engraving-inverted/92689/2?u=mcdanlj)**
>
> @drcmarx I moved this to the Meerk40t category for you. If you post in Meerk40t in the first place, then the system alerts Meerk40t developers. However, if a moderator moves it, it doesn’t alert them. It’s a limitation of the integration we use....

在 discord 中渲染为：

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/d/4/7d4703207bc120da9d54d79efc11d3b7457c5451.png)

请注意，分类引用被渲染为 `<span>Category-Name</span>`——即字面 HTML，并且 span 标签也不平衡。

（因为我所引用的消息内容间接提到了这个插件：我曾温和地鼓励一位新论坛用户选择最具体的分类，以便该插件知道发送通知。我认为当一个主题被新移动到一个已关注的分类时，不向 discord 发送通知的行为是合理的限制，而不是一个 bug。）

这并不是什么大问题，但既然我注意到了，就想提一下。☺

---

_[View the full topic](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600)._
