# Discord naar discussie?

**URL:** https://meta.discourse.org/t/discord-to-discourse/180391
**Category:** Feature
**Created:** [19 februari 2021 om 20:05 UTC](https://meta.discourse.org/t/discord-to-discourse/180391 "2021-02-19T20:05:58Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Sam\_Kelly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam_kelly/32/210204_2.png) [@Sam\_Kelly](https://meta.discourse.org/u/Sam_Kelly)
#### Post date: [19 februari 2021 om 20:05 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/1 "2021-02-19T20:05:58Z")

</div>

Hello, is there a way to create posts in discourse automatically from posts made in discord?

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [19 februari 2021 om 20:24 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/2 "2021-02-19T20:24:18Z")

</div>

Hi Sam! Welcome to our community. Take a look at [Set up Discord notifications with the discourse-chat-integration plugin](https://meta.discourse.org/t/set-up-discord-notifications-using-the-discourse-chat-integration-plugin/66600)

In future please try the 🔍 search - many questions have already been discussed here and the search is quite good at helping find them.

---

<div class="post-metadata">

### Author: ![Sam\_Kelly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam_kelly/32/210204_2.png) [@Sam\_Kelly](https://meta.discourse.org/u/Sam_Kelly)
#### Post date: [19 februari 2021 om 20:41 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/3 "2021-02-19T20:41:29Z")

</div>

Thanks, but i did look and this is not what im looking for, this is discourse to discord, not discord to discourse.

Example scenario:  
Channel in Discord gets a message, this message is then sent to Discourse and a thread created with the info.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [19 februari 2021 om 20:46 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/4 "2021-02-19T20:46:23Z")

</div>

chat-integration can do that in Slack; You’re looking for the post transcripts feature to be implemented for Discord.

---

<div class="post-metadata">

### Author: ![Sam\_Kelly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam_kelly/32/210204_2.png) [@Sam\_Kelly](https://meta.discourse.org/u/Sam_Kelly)
#### Post date: [19 februari 2021 om 20:48 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/5 "2021-02-19T20:48:22Z")

</div>

> [@riking](#):
>
> post transcripts feature

Thanks, so there is no automated way to do it then

---

<div class="post-metadata">

### Author: ![Qursch](https://avatars.discourse-cdn.com/v4/letter/q/c37758/32.png) [@Qursch](https://meta.discourse.org/u/Qursch)
#### Post date: [19 februari 2021 om 20:48 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/6 "2021-02-19T20:48:52Z")

</div>

You could do this with a custom Discord bot that copies the content of messages and makes a post request to your forum.

This would involve additional hosting, unless you want to write your bot in [discordrb](https://github.com/shardlab/discordrb) and use a plugin on your forum.

---

<div class="post-metadata">

### Author: ![Bill](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bill/32/159342_2.png) [@Bill](https://meta.discourse.org/u/Bill)
#### Post date: [19 februari 2021 om 20:54 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/7 "2021-02-19T20:54:00Z")

</div>

Try using this:

[https://meta.discourse.org/t/how-to-connect-discourse-with-hundreds-of-apps-using-integromat/](https://meta.discourse.org/t/how-to-connect-discourse-with-hundreds-of-apps-using-integromat/)

---

<div class="post-metadata">

### Author: ![Sam\_Kelly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam_kelly/32/210204_2.png) [@Sam\_Kelly](https://meta.discourse.org/u/Sam_Kelly)
#### Post date: [19 februari 2021 om 21:17 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/8 "2021-02-19T21:17:53Z")

</div>

Thanks, I tried this but for some reason i cant get the right message id variable set up on it to work.

---

<div class="post-metadata">

### Author: ![Bill](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bill/32/159342_2.png) [@Bill](https://meta.discourse.org/u/Bill)
#### Post date: [19 februari 2021 om 21:27 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/9 "2021-02-19T21:27:16Z")

</div>

Their tech support can most likely help you figure it out.

---

<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: [19 februari 2021 om 21:52 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/10 "2021-02-19T21:52:46Z")

</div>

How would that work wrt permissions and invocation?

Would you want all messages to get copied, or just ones in a particular channel? Would they all get appended to a single Topic - what would cause a fresh Topic to be created?

Would all Discord users have rights to do it?

Where would it end up? Without a category?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [19 februari 2021 om 21:59 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/11 "2021-02-19T21:59:30Z")

</div>

Just the messages in the invoking channel, ideally up to a specified stopping point.

A fancy way of doing it would be:

- hit “Reply” on the first message you want posted
- Write @YourDiscourseIntegrationBotAccount, optionally adding `transcript` or one of its translations on the end
- A transcript from that message to the current time, capped at ~50 messages, is posted to Discourse, as the acting user if possible

You could go fancier if you want to permit interactive input, like setting a custom stop point, excluding some messages, custom destination category. This is the best UX I can come up with that isn’t a back-and-forth.

Actually, it would be fairly easy to make this interactive:

```plaintext
const BASE_URL = "https://discourse.example.com";

// preconditions:
// msg.type == REPLY (19)
// msg.mentions or msg.mention_roles contains the bot
// this is in JS but it'd need to be in Ruby
function onMentionWithReply(msg) {
  discord.sendMessage({
    content: "<" + BASE_URL +
      "/chat-integration/discord/make-transcript/" +
      msg.channel_id + "/" +
      msg.message_reference.message_id + ".." + msg.id +
      ">";
    type: REPLY,
    message_reference: { message_id: msg.id },
  });
}

```

Where `/chat-integration/discord/make-transcript/:channel_id/:id1..:id2` would render an interactive page on Discourse where you could preview the messages and finalize them.

Pitfalls:

- Need to access-check the user hitting that page to avoid improperly disclosing transcripts.

---

<div class="post-metadata">

### Author: ![Sam\_Kelly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam_kelly/32/210204_2.png) [@Sam\_Kelly](https://meta.discourse.org/u/Sam_Kelly)
#### Post date: [19 februari 2021 om 22:09 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/12 "2021-02-19T22:09:36Z")

</div>

Currently, i have a link from slack to Trello, Trello to discord, so id like to get those posts made in discord, or I guess Trello to create a new post under a specific topic.

Too many places to post and not enough time! 🙂

---

<div class="post-metadata">

### Author: ![Sam\_Kelly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam_kelly/32/210204_2.png) [@Sam\_Kelly](https://meta.discourse.org/u/Sam_Kelly)
#### Post date: [19 februari 2021 om 22:12 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/13 "2021-02-19T22:12:22Z")

</div>

Thanks, il take a look at it

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [19 februari 2021 om 22:21 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/14 "2021-02-19T22:21:28Z")

</div>

Oh! Apologies. I didn’t realize that integration doesn’t post in both directions, like the slack integration does.

Generally I do have to wonder.. why would you want to do this? You will clutter your long term memory on discourse with chatter.

---

<div class="post-metadata">

### Author: ![Sam\_Kelly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam_kelly/32/210204_2.png) [@Sam\_Kelly](https://meta.discourse.org/u/Sam_Kelly)
#### Post date: [19 februari 2021 om 22:41 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/15 "2021-02-19T22:41:30Z")

</div>

No problem, the channel posts i want to post to discourse are announcements of new updates in the game, it is very time consuming to post the same thing in multiple places, and discourse often gets forgotten. So I am trying to reduce my work load and at the same time hope to increase activity in Discourse.

---

<div class="post-metadata">

### Author: ![Sam\_Kelly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam_kelly/32/210204_2.png) [@Sam\_Kelly](https://meta.discourse.org/u/Sam_Kelly)
#### Post date: [19 februari 2021 om 23:10 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/16 "2021-02-19T23:10:47Z")

</div>

Ok so I found a workaround that i guess will have to do  
I had to use zapier (the downside is it is not enough on the free plan to cover the posts) to connect my trello to discourse to reply to a thread I had to create for this.  
So now the flow is;  
API from data base posts to slack, slack creates trello card, trello posts to discord and discourse. 🙂

Except now i have a loop where discourse is reposting to discord lol anyway to exclude my posts from that?

---

<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: [20 februari 2021 om 15:57 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/17 "2021-02-20T15:57:47Z")

</div>

I’ve added a related feature to: [Discord Bot Construction Kit 🤖 - #79 by merefield](https://meta.discourse.org/t/discord-bot-run-one-on-your-discourse-server-keep-things-in-sync/122530/79)

If you designate a Channel as the “Announcements Channel”, any message typed there will get posted on your designated Discourse Topic.

(The update also watches for announcements from Discourse that are copied to Discord in the same channel)

> [@Sam\_Kelly](#):
>
> Except now i have a loop where discourse is reposting to discord lol anyway to exclude my posts from that?

This also occurs on my implementation, but it’s not an infinite loop, it just confirms back that the Post has been added. You can avoid that by putting the Discord Topic on Discourse in a different place and avoid the watched Categories.

---

<div class="post-metadata">

### Author: ![Sam\_Kelly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam_kelly/32/210204_2.png) [@Sam\_Kelly](https://meta.discourse.org/u/Sam_Kelly)
#### Post date: [21 februari 2021 om 22:35 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/18 "2021-02-21T22:35:13Z")

</div>

oh thanks, this might actually save me from using another third-party app! I will just have to see how it handles image links

---

<div class="post-metadata">

### Author: ![Sam\_Kelly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam_kelly/32/210204_2.png) [@Sam\_Kelly](https://meta.discourse.org/u/Sam_Kelly)
#### Post date: [21 februari 2021 om 23:49 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/19 "2021-02-21T23:49:33Z")

</div>

actually im not really understanding your instructions, i cant find this in discourse menus under plugin and im not understanding how to install your plugin.

---

<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: [22 februari 2021 om 06:27 UTC](https://meta.discourse.org/t/discord-to-discourse/180391/20 "2021-02-22T06:27:42Z")

</div>

Please post specific issues with the instructions on the the plugin Topic.

Your issue is currently a bit vague for me to help you. Make sure you’ve read the OP thoroughly, then post a specific issue and I’ll be glad to help you.
