# 有人能帮我在论坛上添加Discord的聊天选项吗？

**URL:** <https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007>\
**Category:** Support\
**Created:** [2022年八月24日 01:36 UTC](https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007 "2022-08-24T01:36:20Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![waqar](https://avatars.discourse-cdn.com/v4/letter/w/7993a0/32.png) [@waqar](https://meta.discourse.org/u/waqar)\
**Post date:** [2022年八月24日 01:36 UTC](https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007/1 "2022-08-24T01:36:20Z")

</div>

您好，谁能分享一个有 Discord 聊天选项的论坛链接？或者您知道如何在论坛中添加 Discord 聊天选项吗？用户可以直接在我的论坛上聊天。

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2022年八月24日 05:07 UTC](https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007/2 "2022-08-24T05:07:55Z")

</div>

您可以在设置中配置 Discord 登录，以便用户可以使用其 Discord 凭据登录到您的 Discourse：

> [@Configure Discord Login for Discourse](https://meta.discourse.org/t/configuring-discord-login-for-discourse/127129?u=merefield):
>
> bookmark This guide explains how to set up and configure Discord as a login option for your Discourse forum, including how to restrict access to specific Discord guilds. person_raising_hand Required user level: Administrator Once configured, Discord will appear as a login option alongside other authentication methods on your forum: Setting up Discord OAuth2 Creating a Discord application Visit the [Discord developer portal](https://discordapp.com/developers/applications/me) Click “New Application” Enter a name…

您可以添加此 TC：

> [@Discourse Discord Widget](https://meta.discourse.org/t/discourse-discord-widget/228270?u=merefield):
>
> clap This component is based on the work of Daniela (@dax)'s post [here](https://meta.discourse.org/t/how-to-display-discord-widget-in-a-dropdown-button/73719) and packages the information into an easily installable theme component. mag Overview This theme component allows you to add a Discord widget to your Discourse forum. gear Configuration & Setup For details on how to setup this theme component read [here](https://github.com/paviliondev/discourse-discord-widget#%EF%B8%8F-configuration--setup). octopus Code Repo Install Theme Component

您甚至可以从您的 Discourse 服务器运行一个机器人：

> [@Discord Bot Construction Kit robot](https://meta.discourse.org/t/discord-bot-construction-kit/122530?u=merefield):
>
> Purpose of this plugin This plugin does several things: Allows you to power a Discord bot using your Discourse server to do stuff to link the two systems. Fork this repo and expand it with simple Ruby to create all kinds of bot functionality. Existing functionality to serve as examples and useful utility: Provides some two-way auto posting of content that meet some criteria. Command to copy messages ad hoc to Discourse Command to sync group membership to role membership of your Discor…

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2022年八月24日 05:15 UTC](https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007/3 "2022-08-24T05:15:06Z")

</div>

但是，请务必查看官方的 Discourse 原生聊天插件：

> [@Discourse Chat](https://meta.discourse.org/t/discourse-chat/230881):
>
> discourse2Summary Discourse Chat adds chat functionality to your Discourse instance.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Features As mentioned in our [initial announcement](https://meta.discourse.org/t/introducing-discourse-chat-beta/210734) and [most recent update](https://meta.discourse.org/t/discourse-chat-is-now-available-try-it-out-today/234824), this plugin adds chat functionality to your Discourse so it can natively support both, long-form and short-form communication needs of your online community. Configuration Initial Setup [chat-…

---

<div class="post-metadata">

**Author:** ![waqar](https://avatars.discourse-cdn.com/v4/letter/w/7993a0/32.png) [@waqar](https://meta.discourse.org/u/waqar)\
**Post date:** [2022年八月24日 06:01 UTC](https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007/4 "2022-08-24T06:01:55Z")

</div>

我尝试使用 Discord 组件并填写了所有字段。但是，当我单击 Discord 图标时，它显示如下，并且不允许聊天。它也没有显示所有服务器组。

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

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2022年八月24日 06:03 UTC](https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007/5 "2022-08-24T06:03:26Z")

</div>

您应该在主题上与作者讨论。

---

<div class="post-metadata">

**Author:** ![waqar](https://avatars.discourse-cdn.com/v4/letter/w/7993a0/32.png) [@waqar](https://meta.discourse.org/u/waqar)\
**Post date:** [2022年八月24日 06:06 UTC](https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007/6 "2022-08-24T06:06:36Z")

</div>

我们能否使用 Discord 和官方原生 discourse 聊天插件？

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2022年八月24日 06:07 UTC](https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007/7 "2022-08-24T06:07:36Z")

</div>

不，它们是不同的解决方案。

---

<div class="post-metadata">

**Author:** ![waqar](https://avatars.discourse-cdn.com/v4/letter/w/7993a0/32.png) [@waqar](https://meta.discourse.org/u/waqar)\
**Post date:** [2022年八月24日 06:15 UTC](https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007/8 "2022-08-24T06:15:12Z")

</div>

好的。您知道有什么论坛在使用 Discord 聊天选项吗？

---

<div class="post-metadata">

**Author:** ![waqar](https://avatars.discourse-cdn.com/v4/letter/w/7993a0/32.png) [@waqar](https://meta.discourse.org/u/waqar)\
**Post date:** [2022年八月24日 14:42 UTC](https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007/10 "2022-08-24T14:42:58Z")

</div>

您好，我已经尝试过这个方法 [(Deprecated) Display a "Discord Widget" in a dropdown button](https://meta.discourse.org/t/how-to-display-discord-widget-in-a-dropdown-button/73719)

请问有人能帮我将 Discord 小部件和聊天选项添加到论坛吗？

---

<div class="post-metadata">

**Author:** ![Fabrice](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fabrice/32/265087_2.png) [@Fabrice](https://meta.discourse.org/u/Fabrice)\
**Post date:** [2022年八月24日 17:27 UTC](https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007/11 "2022-08-24T17:27:02Z")

</div>

据我所知，Discord 无法做到这一点，你只能在 Discord 应用或 Discord 网站上聊天，并且可以放置一个小部件来查看谁在线。不过，我知道有一个服务可以做到类似的事情，但我不知道它的名字，而且它可能与 Discourse 不兼容。

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2022年八月24日 18:46 UTC](https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007/12 "2022-08-24T18:46:02Z")

</div>

您能更详细地描述一下您具体想实现什么吗？

---

<div class="post-metadata">

**Author:** ![AquaL1te](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aqual1te/32/201966_2.png) [@AquaL1te](https://meta.discourse.org/u/AquaL1te)\
**Post date:** [2022年八月25日 07:53 UTC](https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007/13 "2022-08-25T07:53:08Z")

</div>

如果你想让论坛上的用户直接与 Discord 上的用户聊天，我认为这是不可能的。Discord 也没有使用开放标准，这使得事情更加困难。我的建议是开始迁移到一个 [Matrix.org](http://Matrix.org) 实例，并使用 [Element](https://element.io/get-started) 作为客户端。我希望 Discourse 有一天能推出一个 Matrix 客户端。然后，你可以将 Matrix 连接到 Discord，这样你的社区就可以连接起来了。

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2022年八月25日 08:04 UTC](https://meta.discourse.org/t/can-anyone-help-me-to-add-chat-option-of-discord-on-forum/237007/14 "2022-08-25T08:04:14Z")

</div>

嗯。我不同意。  
你只需要在 Discord 上设置一个服务器，并提供一种使用内置 Discord 社交登录功能登录到相应 Discourse 的方式。  
然后你就可以在两个平台之间运行社区。很简单。  
我认为事情并没有那么复杂？  
如果你愿意，可以添加集成，例如 [Discord 机器人](https://meta.discourse.org/t/discord-bot-construction-kit/122530)。  
不过，现在使用 Discourse Chat 显然要简单得多……
