diff options
Diffstat (limited to 'lib/Matrix/Client.pm6')
-rw-r--r-- | lib/Matrix/Client.pm6 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Matrix/Client.pm6 b/lib/Matrix/Client.pm6 index 36e0bb7..51141eb 100644 --- a/lib/Matrix/Client.pm6 +++ b/lib/Matrix/Client.pm6 @@ -162,7 +162,11 @@ multi method sync(:$sync-filter is copy, :$since = "") { # Rooms method join-room($room-id!) { - $.post("/join/" ~ $room-id) + $.post("/join/$room-id") +} + +method leave-room($room-id) { + $.post("/rooms/$room-id/leave"); } method rooms(Bool :$sync = False) { |