aboutsummaryrefslogtreecommitdiff
path: root/lib/Matrix/Response.pm6
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Matrix/Response.pm6')
-rw-r--r--lib/Matrix/Response.pm64
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Matrix/Response.pm6 b/lib/Matrix/Response.pm6
index ec93cf3..cc9e7a8 100644
--- a/lib/Matrix/Response.pm6
+++ b/lib/Matrix/Response.pm6
@@ -23,6 +23,10 @@ class Matrix::Response::StateEvent is Matrix::Response::RoomEvent {
has $.state_key;
}
+class Matrix::Response::MemberEvent is Matrix::Response::StateEvent {
+ has $.type is required where 'm.room.member';
+}
+
class Matrix::Response::Timeline {
has Matrix::Response::Event @.events;
has Bool $limited;