Allright. Thatās a bit of a bummer since I just enforced threads in the support chans of our Discord to get a better overview of support cases. And I am not sure it actually gives that - but luckily thereās other advantages.
Do you have an ETA on the API and an idea of what it would cost to back the feature?
I did chase recently and itās been in development for some time. Iāll chase again and revert, but be warned, the last time they told me āitāll be done when itās doneā ā¦ the problem with open source is often a lack of a good way of directing appropriate levels of community funding (or lack thereof) to assist with focus and prioritisation ā¦ weāll see ā¦
From my end Iād have to see the final implementation to estimate the effort.
The challenge might be that whilst itās straightforward to copy across messages, keeping Threads in sync with Topics may require some kind of mapping maintained in Discourse, e.g. a custom field or table that maps Discord Threads to Discourse Topics, so when a new message gets added to a Thread you know where to put it in Discourse.
Can you elaborate on exactly the functionality/behaviour you are seeking?
Yeah that sucks to be depending on something you canāt influence.
My idea is very inspired on the article and the discoussion on the Discourse blog on how well Discord and Discourse supplement each other. When we started our Discord server almost two months ago we didnāt really know how it would evolve and how it would affect our existing (but barely configured) Discourse forum but it looks like people still use it as well as our Discord for asking technical support questions (I am with the FOSS project CrowdSec). So basically I completely buy in on the idea to use Discourse as a more long term memory and sync Discord threads to Discourse under topics matching Discord channels (and vice versa). The way I see it, it can be done much more effectively (e.g. automated) by using threads.
As I said I recently enforced threads on Discord which means that itās not always very easy to get an overview of threads for those of our developers that are assigned to user support. So I want to use the sync to Discourse also as a good way for them to keep updated on questions to answer whilst not being sucked too much into the Discord chitter-chatter.
Does that makes sense? And is there some other way to achieve this on a shorter time frame maybe?
Iām reaching out to you here because I donāt think my github Issue was seen, and Iām thinking this is the next best place.
Weāve been getting an error that weāve tracked down to the discord bot plugin. The above image shows the inspect element error, but any user who sends a PM also gets a ā500 Errorā visual when their PM is sent. The PM is still sent successfully, but this error makes it seem otherwise. After disabling the plugin, the issue no longer exists.
Iām pretty sure the issue is coming from /lib/discourse_event_handlers.rb. Iām assuming that a PM is triggering the post_created DiscourseEvent which makes it try to access the postās category via posted_category = post.topic.category.id, which causes the error.
I hope this helps and I hope this can be resolved soon. Thanks
Hello, I donāt know if this was questioned before but, the OAuth credentials must be the same as the app? Cause right now we are using another discord sync integration and the OAuth fields are already filled. Thanks.
This plugin is compatible with the official social login solution in core. The bot needs a token from an authorised Discord app. The social login allows the plugin to identify the same user across the two platforms.
Hello here!
Searching the forum for a way to give the Discourse users a different Trust Level based on a Discord account brought me here.
We already have a pretty active community on Discord and brought in Discourse lately for more organized discussions.
I am looking for a solution that goes like this. A member that logins with their Discord account and has a specific role on Discord automatically receives a Trust Level 1 on Discourse.
Would this Bot Kit be the right starting point for such an implementation?
This bot afaik is āone-wayā from Discourse to Discord. There arenāt any functions that are the opposite that are built.
Personally I think youād find it a bit easier to accomplish this with outside code that is watching the user events webhook of your discourse install.
Webhook event out ā Grab discord user ID from Discourse database (requires using Discord authentication) ā Grab roles using discord.js, .py, etc. ā Assign role with Discourse API request
In order to get the Discord ID you need to use the Data Explorer plugin and create the following query:
-- [params]
-- string :user
SELECT u.username, u.id, a.user_id, a.provider_name, a.provider_uid
FROM users u
JOIN user_associated_accounts a on a.user_id = u.id
WHERE u.username = :user
You can then look up the Data Explorer plugin documentation and hit that query with an API request to get the ID.
To keep knowledge open and indexed for everyone itās probably best to ask the questions here. Discord is a black hole for information. Stuff goes in and is then never found again And otherwise, we also have chat here on Discourse.
Hi Kene, if itās not of a commercial nature, would appreciate if you could ask your questions here so that the community might benefit from (or even answer) them