# Livelli di fiducia di Discourse per Discord

**URL:** https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232
**Category:** Development
**Created:** [3 Febbraio 2019, 6:05am UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232 "2019-02-03T06:05:26Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![Wedgebert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wedgebert/32/131690_2.png) [@Wedgebert](https://meta.discourse.org/u/Wedgebert)
#### Post date: [9 Maggio 2019, 3:06pm UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/44 "2019-05-09T15:06:34Z")

</div>

I’m all for using oauth2 or any other means of eliminating user malice and/or error.

I was just proposing a quick and dirty solution to getting around the discord email look up problem.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [9 Maggio 2019, 3:10pm UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/45 "2019-05-09T15:10:13Z")

</div>

The work to achieve that was done months ago by @featheredtoast and if that’s all you need you can install the plugin which @falco linked above.

As to the scope of this topic, building on that link to sync trust levels, if you can’t wait for @sudaraka to finish his work your other option is to post over on #Marketplace. Include your proposed budget to see whether another developer would be willing to build this for you sooner.

---

<div class="post-metadata">

### Author: ![Hanzo1](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@Hanzo1](https://meta.discourse.org/u/Hanzo1)
#### Post date: [23 Maggio 2019, 2:42am UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/46 "2019-05-23T02:42:40Z")

</div>

> [@Watercolor\_Games](#):
>
> Or, rather, using Discord’s OAuth2 to have the user link their Discord user account to the Discourse, so now Discourse knows what user ID belongs to that user on the Discord side and thus can access the user via the API.
> 
> I believe this is what Patreon’s integration does - it links your Discord account to your Patreon account, then has a bot sit in the server and sync your pledge with Discord so you get the associated roles based on what tier you hit with your pledge.

Yes. This is correct as far as I can tell, being a user of both plugins.

Patreon requires log-in via Patreon, then syncs your account to your pledge tier.

Would be great to sync Discord roles via Discourse, since Discourse has the information via Patreon already once logged in.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [5 Giugno 2019, 1:18am UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/47 "2019-06-05T01:18:07Z")

</div>

I’d like to gauge interest for an Discourse plugin that does the following:

1. An administrative interface for an admin to connect their Discourse instance to a Discord instance via the Discord API. The authentication would be via OAuth 2.

2. Controls to associate Discourse Groups with Discord Roles, so that members of a group have a certain discord role and vice versa.

Note that this won’t involve or rely on Discord OAuth as a method of user account authentication. The goal is a have a solution that is agnostic about the way you let you users sign up / login.

In terms of identifying users across both platforms, this will be handled by associating ids as a first step, then by email if the relevant id is not available.

If you’re interested in sponsoring such a plugin, now’s your chance. I have time to work on it next week.

@Bernstein @Hanzo1 @Watercolor_Games

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [13 Giugno 2019, 12:07am UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/48 "2019-06-13T00:07:07Z")

</div>

Just an update here, we’re going ahead with building this.

Further details here:

[https://discourse.angusmcleod.com.au/t/discourse-discord-oauth-integration/1103](https://discourse.angusmcleod.com.au/t/discourse-discord-oauth-integration/1103)

If you want to sync Discourse Groups and Discord Roles, we’d appreciate a contribution to the Paypal pool for this work here (currently one sponsor):

> **[Default Title](https://www.paypal.com/pools/c/8fzrDylkFE)**

\*Update

@Hanzo1 @Wedgebert @chagara Are you guys still interested in syncing Discourse and Discord Groups and Roles? If so, we’re in the process of building an integration and need a few more backers to hit our (relatively speaking) low target of $1000 USD. Any contributions \> $100 welcome.

---

<div class="post-metadata">

### Author: ![Wedgebert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wedgebert/32/131690_2.png) [@Wedgebert](https://meta.discourse.org/u/Wedgebert)
#### Post date: [19 Giugno 2019, 12:40am UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/49 "2019-06-19T00:40:11Z")

</div>

We’re interested, but I’ll have to talk to our treasurer about getting donation money together.

---

<div class="post-metadata">

### Author: ![FoohonPie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/foohonpie/32/119648_2.png) [@FoohonPie](https://meta.discourse.org/u/FoohonPie)
#### Post date: [19 Giugno 2019, 1:51am UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/50 "2019-06-19T01:51:15Z")

</div>

I just chipped in some, we’re almost at the target.

For anybody here who is lurking and considering it, I want to emphasize how incredibly reasonable of a funding goal this is for such useful functionality.

There’s one day left and we’re currently $300 short. If you’re even _slightly_ interested in this, now’s your chance to [make it happen](https://www.paypal.com/pools/c/8fzrDylkFE). 😃

---

<div class="post-metadata">

### Author: ![Wedgebert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wedgebert/32/131690_2.png) [@Wedgebert](https://meta.discourse.org/u/Wedgebert)
#### Post date: [19 Giugno 2019, 12:18pm UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/51 "2019-06-19T12:18:11Z")

</div>

We’ll be donating as soon as the person with access to the PayPal account gets online and does it.

---

<div class="post-metadata">

### Author: ![Watercolor\_Games](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watercolor_games/32/131248_2.png) [@Watercolor\_Games](https://meta.discourse.org/u/Watercolor_Games)
#### Post date: [19 Giugno 2019, 1:37pm UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/52 "2019-06-19T13:37:19Z")

</div>

Hey guys, just wanted to say I’m still following the project. Though I’ve moved away from using a forum specifically for my community, (we moved to reddit), it’s really awesome to see my MacGyvered-together proof of concept turn into a reality. I haven’t been able to follow the project much due to highschool and other personal reasons, but things are really shaping up from what I can tell. Good luck, guys! 🙂

---

<div class="post-metadata">

### Author: ![Wedgebert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wedgebert/32/131690_2.png) [@Wedgebert](https://meta.discourse.org/u/Wedgebert)
#### Post date: [19 Giugno 2019, 10:46pm UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/53 "2019-06-19T22:46:42Z")

</div>

Donation has been made

---

<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: [25 Giugno 2019, 9:24pm UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/54 "2019-06-25T21:24:11Z")

</div>

> [@Falco](#):
>
> Use our [Discord Oauth2 Plugin](https://meta.discourse.org/t/discord-oauth2-plugin/67174) for login.
> 
> It receives the correct, authenticated Discord user ID.
> 
> Check if it stores it, if not creat a PR to store it.
> 
> Then you have the Discord Data for every user to use during sync.

Perfect advice 👍

Heads up (and @featheredtoast) I’m working on a PR for this plugin to

- change the class inheritance up a level to `Auth::ManagedAuthenticator` to
  - leverage the richer functionality to simplify the plugin
  - bring the implementation in line with Facebook and Google OAuth (storing additional info in `user_associated_accounts`)

- store the user ID to facilitate my next step … 😉

UPDATE: [Submitted](https://meta.discourse.org/t/discord-oauth2-plugin/67174/55)

---

<div class="post-metadata">

### Author: ![justin.noom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin.noom/32/147907_2.png) [@justin.noom](https://meta.discourse.org/u/justin.noom)
#### Post date: [28 Giugno 2019, 2:10pm UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/55 "2019-06-28T14:10:21Z")

</div>

Questa è un’idea davvero interessante! Non vedo l’ora di vedere dove potrà portare.

---

<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: [30 Giugno 2019, 10:04am UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/56 "2019-06-30T10:04:03Z")

</div>

Alcuni significativi ulteriori progressi sull’integrazione… vedi se riesci a individuarli 🤖 😉 (grazie a @falco per avermi aiutato a rimuovere un ostacolo)

```plaintext
=> Avvio di Puma
=> Applicazione Rails 5.2.3 in fase di avvio in modalità sviluppo
=> Esegui `rails server -h` per altre opzioni di avvio
Avvio del watcher per le modifiche CSS
-------------------------------------
Bot generato, scrivi "Ping!" su Discord!
-------------------------------------
[INFO : websocket @ 2019-06-30 11:00:05.038] Discord utilizza la versione 6 del protocollo gateway, richiesta: 6
Avvio di Puma in modalità singola...
* Versione 3.12.1 (ruby 2.6.1-p33), nome in codice: Llamas in pigiama
* Thread minimi: 0, thread massimi: 16
* Ambiente: sviluppo
* In ascolto su tcp://0.0.0.0:3000
Usa Ctrl-C per fermare

```

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/5/85d49add7001bd7df75a16095e2f4f9f4ac66eaf.png)

Questo bot risponde su Discord in base al codice in esecuzione sul mio plugin Discourse.

NB: al momento si tratta solo di una prova di concetto, quindi potrebbe essere ancora lontana dalla disponibilità per la produzione!

---

<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: [1 Luglio 2019, 12:04pm UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/57 "2019-07-01T12:04:35Z")

</div>

Ora ho implementato su Discord la funzione di espulsione in base al Livello di Fiducia su Discourse.

Se lo desideri, puoi espellere tutti gli utenti del tuo server Discord che non hanno ancora raggiunto un Livello di Fiducia minimo sul tuo forum Discourse.

Devo ancora confezionare e pubblicare il plugin… tenetevi aggiornati.

---

<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: [9 Luglio 2019, 8:28pm UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/58 "2019-07-09T20:28:29Z")

</div>

OK, il calcio ora funziona. E ciò che vedi è in esecuzione su un’istanza _di produzione_ di Discourse (la logica del bot, ovviamente lo screenshot è di Discord :D)

Ci sono ancora alcuni test da eseguire, bug da risolvere (specialmente per la sincronizzazione dei gruppi) e molta documentazione da preparare per guidare le persone nella configurazione (che, purtroppo, non è banale).

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/1/316693634d232c6eddebde88f59ba9c540802b20.png)

Supporterà anche la ‘sincronizzazione’ dei gruppi (copia i gruppi di Discourse e i relativi membri in base ai criteri forniti) fin dal primo giorno.

~~NB: Siamo ancora a 200 $ dall’obiettivo.~~

Si è trattato di un lavoro enorme.

Grazie a tutti coloro che hanno contribuito finora: i sostenitori riceveranno assistenza prioritaria per la configurazione.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [10 Luglio 2019, 2:35am UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/59 "2019-07-10T02:35:52Z")

</div>

Ho provato a contribuire, ma mi dice che il pool è terminato?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [10 Luglio 2019, 3:02am UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/60 "2019-07-10T03:02:18Z")

</div>

Ho creato un nuovo fondo per supportare ulteriormente il lavoro di @merefield qui (infastidisce che PayPal non permetta di riaprire i fondi):

> **[Default Title](https://www.paypal.com/pools/c/8gl5tppfqk)**

(@merefield e io stiamo lavorando insieme)

---

<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: [10 Luglio 2019, 6:07am UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/61 "2019-07-10T06:07:22Z")

</div>

Dio, grazie Jeff!!!

Sì, se non è già ovvio, Angus e io collaboriamo ora su molti progetti e, infatti, il nostro team sta crescendo…

---

<div class="post-metadata">

### Author: ![bintom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bintom/32/140728_2.png) [@bintom](https://meta.discourse.org/u/bintom)
#### Post date: [10 Luglio 2019, 7:31am UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/62 "2019-07-10T07:31:00Z")

</div>

Grazie ragazzi 😀

---

<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: [10 Luglio 2019, 8:36am UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/63 "2019-07-10T08:36:50Z")

</div>

Il finanziamento per questo plugin è stato definitivamente ottenuto e il plugin è ora disponibile qui: [Discord Bot Construction Kit 🤖](https://meta.discourse.org/t/discord-bot-run-one-on-your-discourse-server-and-keep-things-in-sync/122530)

… continuiamo eventuali discussioni relative a questo nuovo plugin lì.

[Pagina precedente](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232.md?page=2)

[Pagina seguente](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232.md?page=4)
