aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Matrix/Client.pm62
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 {