add admin command to force demote a local user from a room
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
a65dd6dfb3
commit
895b178720
2 changed files with 81 additions and 2 deletions
|
@ -79,6 +79,13 @@ pub(super) enum UserCommand {
|
|||
room_id: OwnedRoomOrAliasId,
|
||||
},
|
||||
|
||||
/// - Forces the specified user to drop their power levels to the room
|
||||
/// default, if their permissions allow and the auth check permits
|
||||
ForceDemote {
|
||||
user_id: String,
|
||||
room_id: OwnedRoomOrAliasId,
|
||||
},
|
||||
|
||||
/// - Grant server-admin privileges to a user.
|
||||
MakeUserAdmin {
|
||||
user_id: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue