code: function leaveRoom(room) {
      return __awaiter(this, void 0, void 0, function* () {
          let roomId = yield getRoomId(room);
          let joinedIndex = exports.joinedIds.indexOf(room);
          if (joinedIndex === -1) {
              log_1.logger.error(`[leaveRoom] failed because bot has not joined ${room}`);
          }
          else {
              yield asyncCall('leaveRoom', roomId);
              delete exports.joinedIds[joinedIndex];
          }
      });
  }
docs: Exit a room the bot has joined