Map Discord member permissions to sim user PLs #9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is easiest to explain with examples.
If a Discord user is owner or has a role with Administrator, their sim should be marked PL 100 so they display as Administrator on Matrix-side too.
If a Discord user has a role with Manage Messages, or a channel override with Manage Messages, their sim should be marked PL 50 so they display as Moderator on Matrix-side.
The PLs should be channel-specific.
I need to think about which different kinds of permissions would count as PL 50 or PL 100. Discord has some permissions below Administrator which still grant very high access, like Manage Channel to delete a channel. This is similar to PL 100 allowing Matrix users to brick a room. So Manage Channel probably counts as Administrator.
Numeric PLs are not worth considering. Seeing PL 75 in a client has no semantic meaning.
It would be technically useful to mark members with MENTION_EVERYONE (and not moderator) as power level 20 (or thereabouts) so that the @room permission on Matrix can also be granted at power level 20.
Then to bridge @everyone -> @room, respecting permissions, we don't need to do any permission checks in the message converter because the permission systems from each platform will do the work.
Done in
043f178d1e
and12d85c982e
.