diff options
-rw-r--r-- | lib/Matrix/Client/Room.pm6 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Matrix/Client/Room.pm6 b/lib/Matrix/Client/Room.pm6 index c264a80..1f6aa19 100644 --- a/lib/Matrix/Client/Room.pm6 +++ b/lib/Matrix/Client/Room.pm6 @@ -51,6 +51,9 @@ method leave() { } method gist(--> Str) { - my $name = self.name(); + "Room<name: {self.name()}, id: {self.id}>" +} + +method Str(--> Str) { "Room<name: {self.name()}, id: {self.id}>" } |