diff --git a/packages/rocketchat-lib/README.md b/packages/rocketchat-lib/README.md index 32ddd189ff8ec3b4d9e48bbf7f84bb7dc73a93df..93e67d06b9bba9dd165797e4a35d377d3f466ff5 100644 --- a/packages/rocketchat-lib/README.md +++ b/packages/rocketchat-lib/README.md @@ -8,7 +8,7 @@ This package contains the main libraries of Rocket.Chat. You can create your own room type using (on the client): -``` +```javascript RocketChat.roomTypes.add('l', 5, { template: 'livechat', icon: 'icon-chat-empty', @@ -29,7 +29,7 @@ RocketChat.roomTypes.add('l', 5, { You'll need publish information about the new room with (on the server): -``` +```javascript RocketChat.roomTypes.setPublish('l', (identifier) => { return RocketChat.models.Rooms.findByTypeAndName('l', identifier, { fields: {