diff options
-rw-r--r-- | lib/Matrix/Client.pm6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Matrix/Client.pm6 b/lib/Matrix/Client.pm6 index 1ef4426..3b8efdb 100644 --- a/lib/Matrix/Client.pm6 +++ b/lib/Matrix/Client.pm6 @@ -160,7 +160,7 @@ method leave-room($room-id) { $.post("/rooms/$room-id/leave"); } -method joined-rooms() { +method joined-rooms(--> Seq) { my $res = $.get('/joined_rooms'); my $data = from-json($res.content); return $data<joined_rooms>.Seq.map(-> $room-id { |