Skip to content

Commit

Permalink
Explicitly declare that the kick/ban reason will be on the membership…
Browse files Browse the repository at this point in the history
… event

Fixes matrix-org#798
  • Loading branch information
turt2live committed Jul 3, 2018
1 parent 26a62bc commit 7d94aaa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion api/client-server/banning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ paths:
description: The fully qualified user ID of the user being banned.
reason:
type: string
description: The reason the user has been banned.
description: The reason the user has been banned. This will be supplied as the
``reason`` on the target's updated `m.room.member`_ event.
required: ["user_id"]
responses:
200:
Expand Down
8 changes: 7 additions & 1 deletion api/client-server/kicking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ paths:
Kick a user from the room.
The caller must have the required power level in order to perform this operation.
Kicking a user adjusts the target member's membership state to be ``leave`` with an
optional ``reason``. Like with other membership changes, a user can directly adjust
the target member's state by making a request to ``/rooms/<room id>/state/m.room.member/<user id>``.
operationId: kick
security:
- accessToken: []
Expand All @@ -59,7 +63,9 @@ paths:
description: The fully qualified user ID of the user being kicked.
reason:
type: string
description: The reason the user has been kicked.
description: |-
The reason the user has been kicked. This will be supplied as the
``reason`` on the target's updated `m.room.member`_ event.
required: ["user_id"]
responses:
200:
Expand Down

0 comments on commit 7d94aaa

Please sign in to comment.