# Discourse Trust Levels for Discord

**URL:** <https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232>\
**Category:** Development\
**Created:** [03.Февраль.2019 06:05:26 UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232 "2019-02-03T06:05:26Z")\
**Posts on this page:** 1\
**Showing post:** 18

<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:** [05.Февраль.2019 17:36:57 UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232/18 "2019-02-05T17:36:57Z")

</div>

> [@Falco](#):
>
> Awesome progress!

Thanks! 🙂

> [@Falco](#):
>
> This plugin means users will have to deal with hosting it somewhere. Any reason you didn’t made it as a Discourse plugin so people could configure and run it alongside Discourse

The main reason is I’m far more familiar with JavaScript and Discord.js than I am with Ruby and writing Discourse plugins.

HOWEVER, it isn’t super difficult to run the bot on the same server as the Discourse instance and run the two behind an nginx proxy (in fact, that has a benefit since nginx will handle your SSL - the bot’s integrated http server doesn’t support SSL).

When the bot is ready to go out of testing, I’m going to write detailed wiki pages on the GitHub repo on how to configure the bot to run alongside Discourse on the same server.

Another reason it’s not a Discourse plugin is, if it weren’t for the integrated web server, the bot would be completely independent of Discourse other than API requests - the web server is only there because… your SSO callback payloads need to go somewhere!

Also, @erlend_sh gave me a feature request in PMs - support for custom groups. I have successfully added that. I used the built-in Staff group for testing.

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

I noticed that the Discourse API doesn’t treat the Staff group the same way as admins/moderators/trust levels. While all those aforementioned groups do end up in the `user.groups` list, those groups are also represented in their own fields in the `user` object. `trust_level` being an integer for your trust level, `admin` being a boolean, and `moderator` being a boolean. The `staff` group isn’t treated in that way - so it’s perfect for testing custom groups.

---

_[View the full topic](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232)._
